diff --git a/pmd-fortran/src/main/java/net/sourceforge/pmd/cpd/FortranTokenizer.java b/pmd-fortran/src/main/java/net/sourceforge/pmd/cpd/FortranTokenizer.java index 30d3ba70dd..d5a30f1bb8 100644 --- a/pmd-fortran/src/main/java/net/sourceforge/pmd/cpd/FortranTokenizer.java +++ b/pmd-fortran/src/main/java/net/sourceforge/pmd/cpd/FortranTokenizer.java @@ -19,16 +19,16 @@ public class FortranTokenizer extends AbstractTokenizer implements Tokenizer { public FortranTokenizer() { this.spanMultipleLinesString = false; // No such thing in Fortran ! // setting markers for "string" in Fortran - this.stringToken = new ArrayList(); + this.stringToken = new ArrayList<>(); this.stringToken.add("\'"); // setting markers for 'ignorable character' in Fortran - this.ignorableCharacter = new ArrayList(); + this.ignorableCharacter = new ArrayList<>(); this.ignorableCharacter.add("("); this.ignorableCharacter.add(")"); this.ignorableCharacter.add(","); // setting markers for 'ignorable string' in Fortran - this.ignorableStmt = new ArrayList(); + this.ignorableStmt = new ArrayList<>(); this.ignorableStmt.add("do"); this.ignorableStmt.add("while"); this.ignorableStmt.add("end");