Skip to content

Commit

Permalink
Merge pull request #64 from batmat/add-java-12
Browse files Browse the repository at this point in the history
Add Java 12 major version number
  • Loading branch information
batmat authored Nov 25, 2018
2 parents dc3f3c5 + 34615f8 commit a95178e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ public class EnforceBytecodeVersion

// Java11
JDK_TO_MAJOR_VERSION_NUMBER_MAPPING.put( "11", 55 );

// Java 12
JDK_TO_MAJOR_VERSION_NUMBER_MAPPING.put( "12", 56 );
}

static String renderVersion( int major, int minor )
Expand Down Expand Up @@ -204,7 +207,7 @@ private void computeParameters()
if ( needle == null )
{
throw new IllegalArgumentException( "Unknown JDK version given. Should be something like " +
"\"1.7\", \"8\", \"11\"" );
"\"1.7\", \"8\", \"11\", \"12\"" );
}
maxJavaMajorVersionNumber = needle;
}
Expand Down

0 comments on commit a95178e

Please sign in to comment.