aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2021-03-14 13:51:16 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2021-03-14 13:51:16 +0700
commitbf48d9dd07a7ebd5ac61b66df5c478b59fca831a (patch)
tree6c41af3b40cbab29c03c59f31f42c43b2adc2a17 /build
parentc337029c75830531ddfef4a9bfe9c649efafbeb0 (diff)
downloadaspectj-bf48d9dd07a7ebd5ac61b66df5c478b59fca831a.tar.gz
aspectj-bf48d9dd07a7ebd5ac61b66df5c478b59fca831a.zip
Allow year 2021 in Checklics.License
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'build')
-rw-r--r--build/src/main/java/org/aspectj/internal/tools/ant/taskdefs/Checklics.java24
1 files changed, 7 insertions, 17 deletions
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;