< prev index next >

src/jdk.scripting.nashorn.shell/share/classes/jdk/nashorn/tools/jjs/Main.java

Print this page
rev 48062 : 8192833: JEP 322: Time-Based Release Versioning

*** 297,307 **** } private static String JAVADOC_BASE = "https://docs.oracle.com/javase/%d/docs/api/"; private static void openBrowserForJavadoc(ScriptFunction browse, String relativeUrl) { try { ! final URI uri = new URI(String.format(JAVADOC_BASE, Runtime.version().major()) + relativeUrl); ScriptRuntime.apply(browse, null, uri); } catch (Exception ignored) { } } --- 297,307 ---- } private static String JAVADOC_BASE = "https://docs.oracle.com/javase/%d/docs/api/"; private static void openBrowserForJavadoc(ScriptFunction browse, String relativeUrl) { try { ! final URI uri = new URI(String.format(JAVADOC_BASE, Runtime.version().feature()) + relativeUrl); ScriptRuntime.apply(browse, null, uri); } catch (Exception ignored) { } }
< prev index next >