diff options
author | Andy Clement <aclement@pivotal.io> | 2018-02-14 12:26:50 -0800 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2018-02-14 12:26:50 -0800 |
commit | 4f0f49924f6058c615c335a049af8442eebbc8ea (patch) | |
tree | 5335f638a1d129f64458ce779ae5214c57b699de /build | |
parent | 19cfe0e1caa611180f3513400c31507ad924cae6 (diff) | |
download | aspectj-4f0f49924f6058c615c335a049af8442eebbc8ea.tar.gz aspectj-4f0f49924f6058c615c335a049af8442eebbc8ea.zip |
updated for 2018
Diffstat (limited to 'build')
-rw-r--r-- | build/src/org/aspectj/internal/tools/ant/taskdefs/Checklics.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/build/src/org/aspectj/internal/tools/ant/taskdefs/Checklics.java b/build/src/org/aspectj/internal/tools/ant/taskdefs/Checklics.java index 295a1faea..904ba4656 100644 --- a/build/src/org/aspectj/internal/tools/ant/taskdefs/Checklics.java +++ b/build/src/org/aspectj/internal/tools/ant/taskdefs/Checklics.java @@ -180,7 +180,7 @@ public class Checklics extends MatchingTask { /** @param tl mpl | apache | cpl */ public void setLicense(String tl) { - License input = (License) LICENSES.get(tl); + License input = LICENSES.get(tl); if (null == input) { throw new BuildException("no license known for " + tl); } @@ -217,6 +217,7 @@ public class Checklics extends MatchingTask { } /** list known licenses or check source tree */ + @Override public void execute() throws BuildException { if (list) { list(); @@ -256,6 +257,7 @@ public class Checklics extends MatchingTask { private void replaceHeaders() { class YearVisitor implements FileVisitor { + @Override public void visit(File file) { HeaderInfo info = Header.checkFile(file); if (!Header.replaceHeader(file, info)) { @@ -269,6 +271,7 @@ public class Checklics extends MatchingTask { private void getYears() { final PrintStream out = getOut(); class YearVisitor implements FileVisitor { + @Override public void visit(File file) { HeaderInfo info = Header.checkFile(file); out.println(info.toString()); @@ -291,6 +294,7 @@ public class Checklics extends MatchingTask { int failed = 0; int passed = 0; + @Override public void visit(File file) { if (license.checkFile(file)) { passed++; @@ -339,7 +343,7 @@ public class Checklics extends MatchingTask { /** 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", "2001 ", "2000 ", + "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2001 ", "2000 ", "1999 " }; public final String tag; public final String license; @@ -408,6 +412,7 @@ public class Checklics extends MatchingTask { return gotValidFile(); } + @Override public String toString() { return tag; } @@ -484,6 +489,7 @@ class HeaderInfo { } } + @Override public String toString() { return file.getPath() + ":" + lastLine + " " + years; } |