diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-12-11 15:33:36 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-12-11 15:33:36 +0100 |
commit | fd424eb43e22b998701f369000caf4ef707318f4 (patch) | |
tree | 6843e7df2004def32be840be3b87864ee9d8cc35 /sonar-channel/src | |
parent | eca1f588185032eda81158c53cc024f81c68974b (diff) | |
download | sonarqube-fd424eb43e22b998701f369000caf4ef707318f4.tar.gz sonarqube-fd424eb43e22b998701f369000caf4ef707318f4.zip |
Remove deprecated (and unused) methods in sonar-channel
Diffstat (limited to 'sonar-channel/src')
3 files changed, 1 insertions, 33 deletions
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 fda5c5b67d9..883309f23fe 100644 --- a/sonar-channel/src/main/java/org/sonar/channel/CodeBuffer.java +++ b/sonar-channel/src/main/java/org/sonar/channel/CodeBuffer.java @@ -127,13 +127,6 @@ public class CodeBuffer implements CharSequence { } /** - * @deprecated in 2.12, do not use anymore. - */ - @Deprecated - public final void close() { - } - - /** * @return the current line of the cursor */ public final int getLinePosition() { diff --git a/sonar-channel/src/main/java/org/sonar/channel/CodeReaderConfiguration.java b/sonar-channel/src/main/java/org/sonar/channel/CodeReaderConfiguration.java index a5b3bf9222e..f433dae556b 100644 --- a/sonar-channel/src/main/java/org/sonar/channel/CodeReaderConfiguration.java +++ b/sonar-channel/src/main/java/org/sonar/channel/CodeReaderConfiguration.java @@ -28,12 +28,6 @@ import java.util.List; */ public class CodeReaderConfiguration { - /** - * @deprecated in 2.12, do not use anymore. - */ - @Deprecated - public static final int DEFAULT_BUFFER_CAPACITY = 8000; - public static final int DEFAULT_TAB_WIDTH = 1; private int tabWidth = DEFAULT_TAB_WIDTH; @@ -41,24 +35,6 @@ public class CodeReaderConfiguration { private List<CodeReaderFilter<?>> codeReaderFilters = new ArrayList<CodeReaderFilter<?>>(); /** - * @deprecated in 2.12, do not use anymore. - * @return the constant Integer.MAX_VALUE - */ - @Deprecated - public int getBufferCapacity() { - return Integer.MAX_VALUE; - } - - /** - * @deprecated in 2.12, do not use anymore. - * @param bufferCapacity - * the bufferCapacity to set - */ - @Deprecated - public void setBufferCapacity(int bufferCapacity) { - } - - /** * @return the tabWidth */ public int getTabWidth() { diff --git a/sonar-channel/src/test/java/org/sonar/channel/RegexChannelTest.java b/sonar-channel/src/test/java/org/sonar/channel/RegexChannelTest.java index ac1227cadc8..008b73703d3 100644 --- a/sonar-channel/src/test/java/org/sonar/channel/RegexChannelTest.java +++ b/sonar-channel/src/test/java/org/sonar/channel/RegexChannelTest.java @@ -40,8 +40,7 @@ public class RegexChannelTest { StringBuilder output = new StringBuilder(); CodeReaderConfiguration codeReaderConfiguration = new CodeReaderConfiguration(); - codeReaderConfiguration.setBufferCapacity(2); - + int literalLength = 100000; String veryLongLiteral = String.format(String.format("%%0%dd", literalLength), 0).replace("0", "a"); |