All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.objectweb.asm.test.Util Maven / Gradle / Ivy

Go to download

Utilities for testing ASM, a very small and fast Java bytecode manipulation framework

There is a newer version: 9.7.1
Show newest version
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