Javadoc location update for java 10
Change-Id: I3db5aeb583d8e4fa3397b80fa77fcbb285e65e17
diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMType.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMType.java
index b1180ad..a04dc56 100644
--- a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMType.java
+++ b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMType.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2017 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -816,7 +816,9 @@
*/
public static URL getDefaultJavadocLocation(String version) {
try {
- if (version.startsWith(JavaCore.VERSION_9)) {
+ if (version.startsWith(JavaCore.VERSION_10)) {
+ return new URL("https://docs.oracle.com/javase/10/docs/api/"); //$NON-NLS-1$
+ } else if (version.startsWith(JavaCore.VERSION_9)) {
return new URL("https://docs.oracle.com/javase/9/docs/api/"); //$NON-NLS-1$
} else if (version.startsWith(JavaCore.VERSION_1_8)) {
return new URL("https://docs.oracle.com/javase/8/docs/api/"); //$NON-NLS-1$