We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a5a477 commit fac4146Copy full SHA for fac4146
src/test/java/org/mariadb/jdbc/integration/CredentialPluginTest.java
@@ -21,9 +21,9 @@ public class CredentialPluginTest extends Common {
21
*/
22
@BeforeAll
23
public static void beforeTest() throws SQLException {
24
- String version = System.getProperty("java.version");
+ String version = System.getProperty("java.version").replaceAll("[^.\\d]", "");
25
int majorVersion =
26
- (version.indexOf(".") >= 0)
+ (version.contains("."))
27
? Integer.parseInt(version.substring(0, version.indexOf(".")))
28
: Integer.parseInt(version);
29
Assumptions.assumeTrue(majorVersion < 17);
0 commit comments