diff options
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); } |