From e1ecfa7d65c33df5ee054e57e2b5d696da038154 Mon Sep 17 00:00:00 2001 From: Dinesh Bolkensteyn Date: Thu, 20 Oct 2011 21:30:31 +0200 Subject: SONAR-2923 and SONAR-2632: Fixed some side-effect compilations error in other modules --- .../main/java/org/sonar/duplications/token/TokenChunker.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'sonar-duplications/src') 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 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); -- cgit v1.2.3