From 4471ba76ac755b504d99e514a1cf5a375e7d02d1 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Mon, 20 Apr 2020 16:24:02 -0700 Subject: Include JDTCore for Java14 --- .../org/aspectj/internal/tools/ant/taskdefs/Checklics.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'build') diff --git a/build/src/main/java/org/aspectj/internal/tools/ant/taskdefs/Checklics.java b/build/src/main/java/org/aspectj/internal/tools/ant/taskdefs/Checklics.java index e7de69284..afa3c71d3 100644 --- a/build/src/main/java/org/aspectj/internal/tools/ant/taskdefs/Checklics.java +++ b/build/src/main/java/org/aspectj/internal/tools/ant/taskdefs/Checklics.java @@ -243,11 +243,11 @@ public class Checklics extends MatchingTask { private void visitAll(FileVisitor visitor) { // List filelist = new ArrayList(); String[] dirs = sourcepath.list(); - for (int i = 0; i < dirs.length; i++) { - File dir = project.resolveFile(dirs[i]); + for (String dir2 : dirs) { + File dir = project.resolveFile(dir2); String[] files = getDirectoryScanner(dir).getIncludedFiles(); - for (int j = 0; j < files.length; j++) { - File file = new File(dir, files[j]); + for (String file2 : files) { + File file = new File(dir, file2); String path = file.getPath(); if (path.endsWith(".java")) { visitor.visit(file); @@ -343,9 +343,9 @@ public class Checklics extends MatchingTask { public static class License { /** acceptable years for copyright prefix to company - append " " */ static final String[] YEARS = // remove older after license xfer? - new String[] { "2002 ", "2003 ", "2004 ", "2005", "2006", "2007", "2008", - "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2001 ", "2000 ", - "1999 " }; + new String[] { "2002 ", "2003 ", "2004 ", "2005", "2006", "2007", "2008", + "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2001 ", "2000 ", + "1999 " }; public final String tag; public final String license; private final String[] copyright; -- cgit v1.2.3