diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-02-17 12:48:07 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-02-17 13:46:50 +0400 |
commit | 0aa289a5926819abf28961be3d2f1e772648e9fb (patch) | |
tree | 2b4e7df2d9c0c383ca532b57f59db3be5a991740 /sonar-duplications/src/main/java/net/sourceforge/pmd | |
parent | aa342c58f14c8bc402f69143e9451aaad878e6c3 (diff) | |
download | sonarqube-0aa289a5926819abf28961be3d2f1e772648e9fb.tar.gz sonarqube-0aa289a5926819abf28961be3d2f1e772648e9fb.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-duplications/src/main/java/net/sourceforge/pmd')
-rw-r--r-- | sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java | 2 | ||||
-rw-r--r-- | sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java index 794851b04d3..e0fa7964913 100644 --- a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java +++ b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java @@ -37,7 +37,7 @@ public class SourceCode { public static final String EOL = System.getProperty("line.separator", "\n"); - public static abstract class CodeLoader { + public abstract static class CodeLoader { private SoftReference<List<String>> code; public List<String> getCode() { diff --git a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java index a615af964d3..868b8e2eeea 100644 --- a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java +++ b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java @@ -33,7 +33,7 @@ import java.util.Map; */ public class TokenEntry implements Comparable<TokenEntry> { - private final static Map<String, Integer> TOKENS = new HashMap<String, Integer>(); + private static final Map<String, Integer> TOKENS = new HashMap<String, Integer>(); private static int tokenCount = 0; /** |