You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2020/09/26 13:18:00 UTC
[maven-source-plugin] 02/03: Use diamond operator
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch sonar
in repository https://gitbox.apache.org/repos/asf/maven-source-plugin.git
commit 68bc2df6aa3627521c6fafd6e87c3c7b79ad719d
Author: Piotrek Żygieło <pz...@users.noreply.github.com>
AuthorDate: Sat Sep 26 09:14:00 2020 +0200
Use diamond operator
https://rules.sonarsource.com/java/type/Code%20Smell/RSPEC-2293
---
.../java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java b/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
index 67e0392..a37f75e 100644
--- a/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
+++ b/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
@@ -516,7 +516,7 @@ public abstract class AbstractSourceJarMojo
*/
private String[] getCombinedIncludes( List<String> additionalIncludes )
{
- List<String> combinedIncludes = new ArrayList<String>();
+ List<String> combinedIncludes = new ArrayList<>();
if ( includes != null && includes.length > 0 )
{
@@ -547,7 +547,7 @@ public abstract class AbstractSourceJarMojo
private String[] getCombinedExcludes( List<String> additionalExcludes )
{
- List<String> combinedExcludes = new ArrayList<String>();
+ List<String> combinedExcludes = new ArrayList<>();
if ( useDefaultExcludes )
{