diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-04-02 23:33:39 +0600 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-04-02 23:37:55 +0600 |
commit | 7f99c3f633353a98878103d5a5c99001745ce422 (patch) | |
tree | 662535f58d42aec2c0109ec7ffe6976ed50ef85e | |
parent | d97b49ea30e08c3bf820009a9866a378c5b7a846 (diff) | |
download | sonarqube-7f99c3f633353a98878103d5a5c99001745ce422.tar.gz sonarqube-7f99c3f633353a98878103d5a5c99001745ce422.zip |
Fix some quality flaws
-rw-r--r-- | plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/tracking/StringText.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/tracking/StringText.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/tracking/StringText.java index 756c6e6fce6..69937031fae 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/tracking/StringText.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/tracking/StringText.java @@ -55,15 +55,16 @@ public class StringText implements Sequence { return lines; } - private static final int nextLF(String b, int ptr) { + private static int nextLF(String b, int ptr) { return next(b, ptr, '\n'); } - private static final int next(final String b, int ptr, final char chrA) { + private static int next(final String b, int ptr, final char chrA) { final int sz = b.length(); while (ptr < sz) { - if (b.charAt(ptr++) == chrA) + if (b.charAt(ptr++) == chrA) { return ptr; + } } return ptr; } |