diff --git a/pom.xml b/pom.xml
index 91ba3342ea..53f1b48206 100644
--- a/pom.xml
+++ b/pom.xml
@@ -879,6 +879,14 @@
Dependencies are not being checked, so they are reported as missing
+
+ -
+ false
+
java.method.parameterTypeChanged
+ WarningsPluginConfiguration
+ Nobody should depend on that method
+
+
diff --git a/src/main/java/io/jenkins/plugins/analysis/core/model/WarningsPluginConfiguration.java b/src/main/java/io/jenkins/plugins/analysis/core/model/WarningsPluginConfiguration.java
index 3f65e148b6..48b682a3fd 100644
--- a/src/main/java/io/jenkins/plugins/analysis/core/model/WarningsPluginConfiguration.java
+++ b/src/main/java/io/jenkins/plugins/analysis/core/model/WarningsPluginConfiguration.java
@@ -72,7 +72,7 @@ public List getSourceDirectories() {
* the source directories that contain the affected files
*/
@DataBoundSetter
- public void setSourceDirectories(final Collection sourceDirectories) {
+ public void setSourceDirectories(final List sourceDirectories) {
this.sourceDirectories = new ArrayList<>(sourceDirectories);
PathUtil pathUtil = new PathUtil();
@@ -87,7 +87,7 @@ public void setSourceDirectories(final Collection sourceDirecto
/**
* Filters the specified collection of additional directories so that only permitted source directories will be
* returned. Permitted source directories are absolute paths that have been registered using {@link
- * #setSourceDirectories(Collection)} or relative paths in the workspace.
+ * #setSourceDirectories(List)} or relative paths in the workspace.
*
* @param workspace
* the workspace containing the affected files