diff options
author | Dinesh Bolkensteyn <dinesh@dinsoft.net> | 2011-10-20 21:30:31 +0200 |
---|---|---|
committer | Dinesh Bolkensteyn <dinesh@dinsoft.net> | 2011-10-20 21:30:31 +0200 |
commit | e1ecfa7d65c33df5ee054e57e2b5d696da038154 (patch) | |
tree | 3ca0bbae57a18e2c2aab2ec0d17872c34a723e29 /sonar-duplications/src | |
parent | 0b9c56c76952cc93dea74b386938154158f407dd (diff) | |
download | sonarqube-e1ecfa7d65c33df5ee054e57e2b5d696da038154.tar.gz sonarqube-e1ecfa7d65c33df5ee054e57e2b5d696da038154.zip |
SONAR-2923 and SONAR-2632: Fixed some side-effect compilations error in other modules
Diffstat (limited to 'sonar-duplications/src')
-rw-r--r-- | sonar-duplications/src/main/java/org/sonar/duplications/token/TokenChunker.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/token/TokenChunker.java b/sonar-duplications/src/main/java/org/sonar/duplications/token/TokenChunker.java index a618280f419..ef5c0522dbb 100644 --- a/sonar-duplications/src/main/java/org/sonar/duplications/token/TokenChunker.java +++ b/sonar-duplications/src/main/java/org/sonar/duplications/token/TokenChunker.java @@ -28,13 +28,6 @@ import org.sonar.duplications.DuplicationsException; public final class TokenChunker { - /** - * Some files can have large tokens (e.g. javadocs), so large buffer required. - * - * @see CodeReaderConfiguration#DEFAULT_BUFFER_CAPACITY - */ - private final static int BUFFER_CAPACITY = 80000; - private final ChannelDispatcher<TokenQueue> channelDispatcher; public static Builder builder() { @@ -50,9 +43,7 @@ public final class TokenChunker { } public TokenQueue chunk(Reader reader) { - CodeReaderConfiguration codeReaderConfiguration = new CodeReaderConfiguration(); - codeReaderConfiguration.setBufferCapacity(BUFFER_CAPACITY); - CodeReader code = new CodeReader(reader, codeReaderConfiguration); + CodeReader code = new CodeReader(reader); TokenQueue queue = new TokenQueue(); try { channelDispatcher.consume(code, queue); |