[maven-javadoc-plugin] branch MJAVADOC-555 updated: [MJAVADOC-555] keep javaVersion out of try-block

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[maven-javadoc-plugin] branch MJAVADOC-555 updated: [MJAVADOC-555] keep javaVersion out of try-block

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

rfscholte pushed a commit to branch MJAVADOC-555
in repository https://gitbox.apache.org/repos/asf/maven-javadoc-plugin.git


The following commit(s) were added to refs/heads/MJAVADOC-555 by this push:
     new 05167b8  [MJAVADOC-555] keep javaVersion out of try-block
05167b8 is described below

commit 05167b8c614421a9170244db503d93659cfebcac
Author: rfscholte <[hidden email]>
AuthorDate: Sun Oct 20 15:34:21 2019 +0200

    [MJAVADOC-555] keep javaVersion out of try-block
---
 src/it/projects/MJAVADOC-555_link-automatic-modules/verify.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/it/projects/MJAVADOC-555_link-automatic-modules/verify.groovy b/src/it/projects/MJAVADOC-555_link-automatic-modules/verify.groovy
index bcff819..2aed873 100644
--- a/src/it/projects/MJAVADOC-555_link-automatic-modules/verify.groovy
+++ b/src/it/projects/MJAVADOC-555_link-automatic-modules/verify.groovy
@@ -17,11 +17,11 @@
  * under the License.
  */
 
-try {
 
 def classFile
 
-int javaVersion = (System.getProperty( 'java.specification.version' ) ?: System.getProperty( 'java.version' ).find('\\d+') ?: '11')  as Integer
+int javaVersion = (System.getProperty( 'java.specification.version' ) as Integer
+try {
 if ( javaVersion >= 11 ) {
  classFile = new File( basedir, 'target/apidocs/jul_to_slf4j/com/testcase/Testcase.html')
 } else {