org.objectweb.asm.test.Util Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asm-test Show documentation
Show all versions of asm-test Show documentation
Utilities for testing ASM, a very small and fast Java bytecode manipulation framework
package org.objectweb.asm.test;
import java.util.StringTokenizer;
/**
* Provides utility methods for the asm.test package.
*
* @author Eric Bruneton
*/
final class Util {
private Util() {}
static int getMajorJavaVersion() {
String javaVersion = System.getProperty("java.version");
String javaMajorVersion = new StringTokenizer(javaVersion, "._").nextToken();
return Integer.parseInt(javaMajorVersion);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy