From 7b0cb741b188abd0be71b5dfacbe5f3a0a5cda9f Mon Sep 17 00:00:00 2001 From: bellingard Date: Thu, 14 Oct 2010 13:45:29 +0000 Subject: [SONAR-1853] Create a new CodeReaderFilter mechanism to prevent logic duplications between Channel(s) http://jira.codehaus.org/browse/SONAR-1853 --- .../main/java/org/sonar/channel/CodeBuffer.java | 50 ++++++++-- .../main/java/org/sonar/channel/CodeReader.java | 12 +-- .../java/org/sonar/channel/CodeReaderFilter.java | 10 ++ .../java/org/sonar/channel/CodeBufferTest.java | 101 ++++++++++++++++++++- 4 files changed, 152 insertions(+), 21 deletions(-) create mode 100644 sonar-channel/src/main/java/org/sonar/channel/CodeReaderFilter.java diff --git a/sonar-channel/src/main/java/org/sonar/channel/CodeBuffer.java b/sonar-channel/src/main/java/org/sonar/channel/CodeBuffer.java index f726f0a9645..b4288bad3ce 100644 --- a/sonar-channel/src/main/java/org/sonar/channel/CodeBuffer.java +++ b/sonar-channel/src/main/java/org/sonar/channel/CodeBuffer.java @@ -19,6 +19,7 @@ */ package org.sonar.channel; +import java.io.FilterReader; import java.io.IOException; import java.io.Reader; import java.io.StringReader; @@ -26,8 +27,7 @@ import java.io.StringReader; import org.apache.commons.io.IOUtils; /** - * The CodeBuffer class provides all the basic features required to manipulate a source code character stream. - * Those features are : + * The CodeBuffer class provides all the basic features required to manipulate a source code character stream. Those features are : *