commit:     88779df1d44e081fab5d3602f0b7baf4a6802fbe
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  3 12:15:16 2019 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sun Nov  3 12:15:16 2019 +0000
URL:        https://gitweb.gentoo.org/proj/java-ebuilder.git/commit/?id=88779df1

fixed parsing of java version

Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 src/main/java/org/gentoo/java/ebuilder/maven/JavaVersion.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/gentoo/java/ebuilder/maven/JavaVersion.java 
b/src/main/java/org/gentoo/java/ebuilder/maven/JavaVersion.java
index 5aa600d..7402cd2 100644
--- a/src/main/java/org/gentoo/java/ebuilder/maven/JavaVersion.java
+++ b/src/main/java/org/gentoo/java/ebuilder/maven/JavaVersion.java
@@ -15,7 +15,7 @@ public class JavaVersion {
      * Pattern for parsing Java versionNumber.
      */
     private static final Pattern PATTERN_VERSION
-            = Pattern.compile("^(?:1\\.)(\\d+)$");
+            = Pattern.compile("^(?:1\\.)?(\\d+)$");
     /**
      * Java versionNumber number.
      */

Reply via email to