Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getJavaVersion (0.07 sec)

  1. src/test/java/org/codelibs/fess/util/JvmUtilTest.java

            assertEquals(4, JvmUtil.getJavaVersion());
            System.setProperty("java.version", "1.5.0_15");
            assertEquals(5, JvmUtil.getJavaVersion());
            System.setProperty("java.version", "1.6.0_34");
            assertEquals(6, JvmUtil.getJavaVersion());
            System.setProperty("java.version", "1.7.0_25");
            assertEquals(7, JvmUtil.getJavaVersion());
            System.setProperty("java.version", "1.8.0_171");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/util/JvmUtil.java

        private JvmUtil() {
            // nothing
        }
    
        public static String[] filterJvmOptions(final String[] values) {
            final int version = getJavaVersion();
            return Arrays.stream(values).map(s -> {
                final Matcher matcher = VERSION_PREFIX_PATTERN.matcher(s);
                if (!matcher.matches()) {
                    return s;
                }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top