test_class.file: filter-service-core/src/test/java/cn/leancloud/filter/service/utils/JavaTest.java
test_class.identifier: JavaTest
test_case.body: @Test
      public void testJavaVersion() {
          Java.Version v = Java.parseVersion("9");
          assertThat(v.majorVersion).isEqualTo(9);
          assertThat(v.minorVersion).isEqualTo(0);
          assertThat(v.isJava9Compatible()).isTrue();
  
          v = Java.parseVersion("9.0.1");
          assertThat(v.majorVersion).isEqualTo(9);
          assertThat(v.minorVersion).isEqualTo(0);
          assertThat(v.isJava9Compatible()).isTrue();
  
          v = Java.parseVersion("9.0.0.15"); // Azul Zulu
          assertThat(v.majorVersion).isEqualTo(9);
          assertThat(v.minorVersion).isEqualTo(0);
          assertThat(v.isJava9Compatible()).isTrue();
  
          v = Java.parseVersion("9.1");
          assertThat(v.majorVersion).isEqualTo(9);
          assertThat(v.minorVersion).isEqualTo(1);
          assertThat(v.isJava9Compatible()).isTrue();
  
          v = Java.parseVersion("1.8.0_152");
          assertThat(v.majorVersion).isEqualTo(1);
          assertThat(v.minorVersion).isEqualTo(8);
          assertThat(v.isJava9Compatible()).isFalse();
  
  
          v = Java.parseVersion("1.7.0_80");
          assertThat(v.majorVersion).isEqualTo(1);
          assertThat(v.minorVersion).isEqualTo(7);
          assertThat(v.isJava9Compatible()).isFalse();
      }
test_case.class_method_signature: JavaTest.testJavaVersion()
test_case.full_signature: @Test public void testJavaVersion()
test_case.identifier: testJavaVersion
test_case.invocations: parseVersion isEqualTo assertThat isEqualTo assertThat isTrue assertThat isJava9Compatible parseVersion isEqualTo assertThat isEqualTo assertThat isTrue assertThat isJava9Compatible parseVersion isEqualTo assertThat isEqualTo assertThat isTrue assertThat isJava9Compatible parseVersion isEqualTo assertThat isEqualTo assertThat isTrue assertThat isJava9Compatible parseVersion isEqualTo assertThat isEqualTo assertThat isFalse assertThat isJava9Compatible parseVersion isEqualTo assertThat isEqualTo assertThat isFalse assertThat isJava9Compatible
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testJavaVersion()
focal_class.declarator: VERSION = parseVersion(System.getProperty("java.specification.version"))
focal_class.modifier: private static final
focal_class.original_string: private static final Version VERSION = parseVersion(System.getProperty("java.specification.version"));
focal_class.type: Version
focal_class.var_name: VERSION
focal_class.declarator: IS_JAVA9_COMPATIBLE = VERSION.isJava9Compatible()
focal_class.modifier: public static final
focal_class.original_string: public static final boolean IS_JAVA9_COMPATIBLE = VERSION.isJava9Compatible();
focal_class.type: boolean
focal_class.var_name: IS_JAVA9_COMPATIBLE
focal_class.file: filter-service-core/src/main/java/cn/leancloud/filter/service/utils/Java.java
focal_class.identifier: Java
focal_class.class_method_signature: Java.Java()
focal_class.full_signature: private  Java()
focal_class.identifier: Java
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  Java()
focal_class.class_method_signature: Java.parseVersion(String versionString)
focal_class.full_signature: static Version parseVersion(String versionString)
focal_class.identifier: parseVersion
focal_class.modifiers: static
focal_class.parameters: (String versionString)
focal_class.return: Version
focal_class.signature: Version parseVersion(String versionString)
focal_method.body: static Version parseVersion(String versionString) {
          final StringTokenizer st = new StringTokenizer(versionString, ".");
          int majorVersion = Integer.parseInt(st.nextToken());
          int minorVersion;
          if (st.hasMoreTokens())
              minorVersion = Integer.parseInt(st.nextToken());
          else
              minorVersion = 0;
          return new Version(majorVersion, minorVersion);
      }
focal_method.class_method_signature: Java.parseVersion(String versionString)
focal_method.full_signature: static Version parseVersion(String versionString)
focal_method.identifier: parseVersion
focal_method.invocations: parseInt nextToken hasMoreTokens parseInt nextToken
focal_method.modifiers: static
focal_method.parameters: (String versionString)
focal_method.return: Version
focal_method.signature: Version parseVersion(String versionString)