diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-10-23 12:02:43 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-10-23 12:03:01 +0200 |
commit | 271802bc3f3ec0bf1c6a23bffd4e3b115e3401a0 (patch) | |
tree | 3467050b2657f9a54fa5fe85acd1ed8b2897c7b0 /sonar-testing-harness/src | |
parent | a505a98b4d1ad33c80b939ae6fed12043e635ded (diff) | |
download | sonarqube-271802bc3f3ec0bf1c6a23bffd4e3b115e3401a0.tar.gz sonarqube-271802bc3f3ec0bf1c6a23bffd4e3b115e3401a0.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-testing-harness/src')
-rw-r--r-- | sonar-testing-harness/src/main/java/org/sonar/test/channel/ChannelMatcher.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sonar-testing-harness/src/main/java/org/sonar/test/channel/ChannelMatcher.java b/sonar-testing-harness/src/main/java/org/sonar/test/channel/ChannelMatcher.java index 36582f5034c..7cce5d431ca 100644 --- a/sonar-testing-harness/src/main/java/org/sonar/test/channel/ChannelMatcher.java +++ b/sonar-testing-harness/src/main/java/org/sonar/test/channel/ChannelMatcher.java @@ -24,19 +24,19 @@ import org.hamcrest.Description; import org.sonar.channel.Channel; import org.sonar.channel.CodeReader; -public class ChannelMatcher<OUTPUT> extends BaseMatcher<Channel<OUTPUT>> { +public class ChannelMatcher<O> extends BaseMatcher<Channel<O>> { private final String sourceCode; - private final OUTPUT output; + private final O output; private final CodeReader reader; - public ChannelMatcher(String sourceCode, OUTPUT output) { + public ChannelMatcher(String sourceCode, O output) { this.sourceCode = sourceCode; this.output = output; this.reader = new CodeReader(sourceCode); } - public ChannelMatcher(CodeReader reader, OUTPUT output) { + public ChannelMatcher(CodeReader reader, O output) { this.output = output; this.sourceCode = new String(reader.peek(30)); this.reader = reader; @@ -46,7 +46,7 @@ public class ChannelMatcher<OUTPUT> extends BaseMatcher<Channel<OUTPUT>> { if ( !(arg0 instanceof Channel)) { return false; } - Channel<OUTPUT> channel = (Channel<OUTPUT>) arg0; + Channel<O> channel = (Channel<O>) arg0; return channel.consume(reader, output); } |