diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-12 11:22:17 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-12 11:22:17 +0100 |
commit | 1f52154068f1750bcce6cf41715ac056e12372dc (patch) | |
tree | f36fb37db164c2b571d2c13db6b7e08940826d80 /sonar-duplications/src/main/java | |
parent | 9c9ed9f3d84e3dfc736e734d94adb480a8c6c188 (diff) | |
download | sonarqube-1f52154068f1750bcce6cf41715ac056e12372dc.tar.gz sonarqube-1f52154068f1750bcce6cf41715ac056e12372dc.zip |
Fix quality flaws
Diffstat (limited to 'sonar-duplications/src/main/java')
-rw-r--r-- | sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokens.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokens.java b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokens.java index d7fbe3303d4..7bdf7c64364 100644 --- a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokens.java +++ b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokens.java @@ -34,22 +34,22 @@ import java.util.List; */ public class Tokens { - private List<TokenEntry> tokens = new ArrayList<TokenEntry>(); + private List<TokenEntry> entries = new ArrayList<>(); public void add(TokenEntry tokenEntry) { - this.tokens.add(tokenEntry); + this.entries.add(tokenEntry); } public Iterator<TokenEntry> iterator() { - return tokens.iterator(); + return entries.iterator(); } public int size() { - return tokens.size(); + return entries.size(); } public List<TokenEntry> getTokens() { - return tokens; + return entries; } } |