From: Alexander Kriegisch Date: Sun, 14 Mar 2021 06:51:16 +0000 (+0700) Subject: Allow year 2021 in Checklics.License X-Git-Tag: java16-add-opens~34^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bf48d9dd07a7ebd5ac61b66df5c478b59fca831a;p=aspectj.git Allow year 2021 in Checklics.License Signed-off-by: Alexander Kriegisch --- 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 e343c9d48..1f9b132ec 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 @@ -12,26 +12,15 @@ package org.aspectj.internal.tools.ant.taskdefs; -import java.io.BufferedReader; -import java.io.File; -import java.io.FileReader; -import java.io.FileWriter; -import java.io.IOException; -import java.io.PrintStream; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Hashtable; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Project; import org.apache.tools.ant.taskdefs.MatchingTask; import org.apache.tools.ant.types.Path; import org.apache.tools.ant.types.Reference; +import java.io.*; +import java.util.*; + /** * Check that included .java files contain license and copyright strings for MPL 1.0 (default), Apache, or CPL. Use list="true" to * get a list of known license variants {license}-{copyrightHolder} todo reimplement with regexp and jdiff FileLine utilities @@ -343,9 +332,10 @@ 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", "2020", "2001 ", "2000 ", - "1999 " }; + new String[] { + "2002 ", "2003 ", "2004 ", "2005", "2006", "2007", "2008", "2009", "2010", "2011", + "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", + "2001 ", "2000 ", "1999 " }; public final String tag; public final String license; private final String[] copyright;