Bug 553769: [Doclet] add support for Java9 Doclet API

  stick to Java8 API

Change-Id: I5d1d709afaa95b985b594f5967f90b1615c4ea52
diff --git a/developers/org.eclipse.ease.helpgenerator/src/org/eclipse/ease/helpgenerator/V8ModuleDoclet.java b/developers/org.eclipse.ease.helpgenerator/src/org/eclipse/ease/helpgenerator/V8ModuleDoclet.java
index 58662cb..82b4d6c 100644
--- a/developers/org.eclipse.ease.helpgenerator/src/org/eclipse/ease/helpgenerator/V8ModuleDoclet.java
+++ b/developers/org.eclipse.ease.helpgenerator/src/org/eclipse/ease/helpgenerator/V8ModuleDoclet.java
@@ -10,7 +10,7 @@
  *******************************************************************************/
 package org.eclipse.ease.helpgenerator;
 
-import java.util.List;
+import java.util.Arrays;
 
 import org.eclipse.ease.helpgenerator.sunapi.Java5ModuleDoclet;
 
@@ -36,7 +36,7 @@
 		for (final String[] option : options) {
 
 			if (OPTION_PROJECT_ROOT.equals(option[0]))
-				doclet.setParameter(OPTION_PROJECT_ROOT, List.of(option[1]));
+				doclet.setParameter(OPTION_PROJECT_ROOT, Arrays.asList(option[1]));
 
 			else if (OPTION_LINK.equals(option[0]))
 				doclet.registerLinks(option[1]);
@@ -45,10 +45,10 @@
 				doclet.registerOfflineLinks(option[1], option[2] + "/package-list");
 
 			else if (OPTION_FAIL_ON_HTML_ERRORS.equals(option[0]))
-				doclet.setParameter(OPTION_FAIL_ON_HTML_ERRORS, List.of(option[1]));
+				doclet.setParameter(OPTION_FAIL_ON_HTML_ERRORS, Arrays.asList(option[1]));
 
 			else if (OPTION_FAIL_ON_MISSING_DOCS.equals(option[0]))
-				doclet.setParameter(OPTION_FAIL_ON_MISSING_DOCS, List.of(option[1]));
+				doclet.setParameter(OPTION_FAIL_ON_MISSING_DOCS, Arrays.asList(option[1]));
 		}
 
 		return doclet.run();
diff --git a/developers/org.eclipse.ease.helpgenerator/src/org/eclipse/ease/helpgenerator/V9ModuleDoclet.java b/developers/org.eclipse.ease.helpgenerator/src/org/eclipse/ease/helpgenerator/V9ModuleDoclet.java
index f4e1cf9..1baeb6c 100644
--- a/developers/org.eclipse.ease.helpgenerator/src/org/eclipse/ease/helpgenerator/V9ModuleDoclet.java
+++ b/developers/org.eclipse.ease.helpgenerator/src/org/eclipse/ease/helpgenerator/V9ModuleDoclet.java
@@ -11,6 +11,7 @@
 package org.eclipse.ease.helpgenerator;
 
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Locale;
@@ -104,7 +105,7 @@
 
 		@Override
 		public List<String> getNames() {
-			return List.of(fIdentifier);
+			return Arrays.asList(fIdentifier);
 		}
 
 		@Override
diff --git a/developers/org.eclipse.ease.helpgenerator/test/org/eclipse/ease/helpgenerator/LinkProviderTest.java b/developers/org.eclipse.ease.helpgenerator/test/org/eclipse/ease/helpgenerator/LinkProviderTest.java
index e531762..2b89239 100644
--- a/developers/org.eclipse.ease.helpgenerator/test/org/eclipse/ease/helpgenerator/LinkProviderTest.java
+++ b/developers/org.eclipse.ease.helpgenerator/test/org/eclipse/ease/helpgenerator/LinkProviderTest.java
@@ -14,8 +14,8 @@
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNull;
 
+import java.util.Arrays;
 import java.util.Collection;
-import java.util.List;
 
 import org.eclipse.ease.helpgenerator.model.AbstractClassModel;
 import org.junit.Before;
@@ -30,7 +30,7 @@
 	@Before
 	public void setup() {
 		fLinkProvider = new LinkProvider();
-		fLinkProvider.registerAddress(ROOT_URI, List.of("java.lang", "java.util", "java.io", "org.test.some"));
+		fLinkProvider.registerAddress(ROOT_URI, Arrays.asList("java.lang", "java.util", "java.io", "org.test.some"));
 		fLinkProvider.setClassModel(new AbstractClassModel() {
 
 			@Override
@@ -39,7 +39,7 @@
 
 			@Override
 			public Collection<String> getImportedClasses() {
-				return List.of("java.io.IOException", "java.util.Collection");
+				return Arrays.asList("java.io.IOException", "java.util.Collection");
 			}
 		});
 	}