You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2019/01/18 12:21:44 UTC

[maven-jmod-plugin] 02/06: Replace String.isBlank() from Java 11 with String.trim().isEmpty().

This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch JMOD-20
in repository https://gitbox.apache.org/repos/asf/maven-jmod-plugin.git

commit 9f5d4664784acad62f4a1f0968c67a549eb44c48
Author: Andre Tadeu de Carvalho <an...@gmail.com>
AuthorDate: Wed Dec 12 15:09:01 2018 -0200

    Replace String.isBlank() from Java 11 with String.trim().isEmpty().
---
 src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java b/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java
index a977e81..f8ae235 100644
--- a/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java
+++ b/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java
@@ -587,7 +587,7 @@ public class JModCreateMojo
             argsFile.println( getPlatformSeparatedList( configList ) );
         }
 
-        if ( mainClass != null && !mainClass.isBlank() )
+        if ( mainClass != null && !mainClass.trim().isEmpty() )
         {
             argsFile.println( "--main-class" );
             argsFile.println( mainClass );