diff options
Diffstat (limited to 'sonar-duplications')
-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; } } |