diff --git a/pom.xml b/pom.xml
index 839bee0b4e0..708ad17e7a1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -104,13 +104,13 @@
com.fasterxml.jackson.corejackson-databind
- 2.13.4.2
+ 2.14.0org.apache.commonscommons-compress
- 1.21
+ 1.22
@@ -227,6 +227,7 @@
org.apache.maven.pluginsmaven-assembly-plugin
+ 3.3.0
@@ -252,6 +253,30 @@
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+ org.apache.maven.plugins
@@ -278,6 +303,7 @@
org.apache.maven.pluginsmaven-surefire-plugin
+ 3.0.0-M6ch.qos.logback:logback-classic
diff --git a/spoon-pom/pom.xml b/spoon-pom/pom.xml
index cab8347f94e..d05d6fa180a 100644
--- a/spoon-pom/pom.xml
+++ b/spoon-pom/pom.xml
@@ -264,7 +264,7 @@
maven-release-plugin
- 3.0.0-M6
+ 3.0.0-M7maven-resources-plugin
diff --git a/src/main/java/spoon/support/compiler/jdt/TreeBuilderCompiler.java b/src/main/java/spoon/support/compiler/jdt/TreeBuilderCompiler.java
index a6588033755..b63b4ce4b49 100644
--- a/src/main/java/spoon/support/compiler/jdt/TreeBuilderCompiler.java
+++ b/src/main/java/spoon/support/compiler/jdt/TreeBuilderCompiler.java
@@ -133,6 +133,6 @@ private CompilationUnit[] ignoreSyntaxErrors(CompilationUnit[] sourceUnits) {
}
}
this.initializeParser();
- return sourceUnitList.toArray(new CompilationUnit[sourceUnitList.size()]);
+ return sourceUnitList.toArray(new CompilationUnit[0]);
}
}
diff --git a/src/main/java/spoon/support/visitor/replace/ReplacementVisitor.java b/src/main/java/spoon/support/visitor/replace/ReplacementVisitor.java
index 83b007f06f0..2e46736c4c8 100644
--- a/src/main/java/spoon/support/visitor/replace/ReplacementVisitor.java
+++ b/src/main/java/spoon/support/visitor/replace/ReplacementVisitor.java
@@ -1389,7 +1389,7 @@ public static void replace(spoon.reflect.declaration.CtElement original, spoon.r
}
public static void replace(spoon.reflect.declaration.CtElement original, java.util.Collection replaces) {
- new spoon.support.visitor.replace.ReplacementVisitor(original, replaces.toArray(new spoon.reflect.declaration.CtElement[replaces.size()])).scan(original.getParent());
+ new spoon.support.visitor.replace.ReplacementVisitor(original, replaces.toArray(new spoon.reflect.declaration.CtElement[0])).scan(original.getParent());
}
private spoon.reflect.declaration.CtElement original;
diff --git a/src/test/java/spoon/generating/ReplacementVisitorGenerator.java b/src/test/java/spoon/generating/ReplacementVisitorGenerator.java
index e50d289e229..49764c6d65e 100644
--- a/src/test/java/spoon/generating/ReplacementVisitorGenerator.java
+++ b/src/test/java/spoon/generating/ReplacementVisitorGenerator.java
@@ -1,18 +1,9 @@
-/**
- * Copyright (C) 2006-2018 INRIA and contributors
- * Spoon - http://spoon.gforge.inria.fr/
+/*
+ * SPDX-License-Identifier: (MIT OR CECILL-C)
*
- * This software is governed by the CeCILL-C License under French law and
- * abiding by the rules of distribution of free software. You can use, modify
- * and/or redistribute the software under the terms of the CeCILL-C license as
- * circulated by CEA, CNRS and INRIA at http://www.cecill.info.
+ * Copyright (C) 2006-2019 INRIA and contributors
*
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the CeCILL-C License for more details.
- *
- * The fact that you are presently reading this means that you have had
- * knowledge of the CeCILL-C license and that you accept its terms.
+ * Spoon is available either under the terms of the MIT License (see LICENSE-MIT.txt) of the Cecill-C License (see LICENSE-CECILL-C.txt). You as the user are entitled to choose the terms under which to adopt Spoon.
*/
package spoon.generating;
diff --git a/src/test/java/spoon/generating/replace/ReplaceScanner.java b/src/test/java/spoon/generating/replace/ReplaceScanner.java
index 660e43461f2..e7b71d5401b 100644
--- a/src/test/java/spoon/generating/replace/ReplaceScanner.java
+++ b/src/test/java/spoon/generating/replace/ReplaceScanner.java
@@ -50,7 +50,7 @@ public class ReplaceScanner extends CtScanner {
public static final String GENERATING_REPLACE_PACKAGE = "spoon.generating.replace";
public static final String GENERATING_REPLACE_VISITOR = GENERATING_REPLACE_PACKAGE + ".ReplacementVisitor";
- private final Map listeners = new HashMap<>();
+ private final Map> listeners = new HashMap<>();
private final CtClass