diff options
author | Alexander Kurtakov | 2017-11-13 11:00:43 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2017-11-13 11:00:43 +0000 |
commit | c51bc3e5f7a5378d3a315d48a96128d110d6a1da (patch) | |
tree | 6a90fabb6e29b39db2f981d6d0775dfc28ac66e4 /bundles/org.eclipse.equinox.jsp.jasper.registry/src/org/eclipse/equinox/jsp/jasper/registry/JSPFactory.java | |
parent | 883f97fb788018824c666d5bedc3d952e25a90f6 (diff) | |
download | rt.equinox.bundles-c51bc3e5f7a5378d3a315d48a96128d110d6a1da.tar.gz rt.equinox.bundles-c51bc3e5f7a5378d3a315d48a96128d110d6a1da.tar.xz rt.equinox.bundles-c51bc3e5f7a5378d3a315d48a96128d110d6a1da.zip |
Bug 527189 - Move jsp.* bundles to Java 8
Bump BREE, minor version. Update the codebase to modernize it.
Change-Id: I8407f4437e865c0a26dcb80d21f6b035ec729222
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.jsp.jasper.registry/src/org/eclipse/equinox/jsp/jasper/registry/JSPFactory.java')
-rw-r--r-- | bundles/org.eclipse.equinox.jsp.jasper.registry/src/org/eclipse/equinox/jsp/jasper/registry/JSPFactory.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.jsp.jasper.registry/src/org/eclipse/equinox/jsp/jasper/registry/JSPFactory.java b/bundles/org.eclipse.equinox.jsp.jasper.registry/src/org/eclipse/equinox/jsp/jasper/registry/JSPFactory.java index ca653d099..30d0d22b0 100644 --- a/bundles/org.eclipse.equinox.jsp.jasper.registry/src/org/eclipse/equinox/jsp/jasper/registry/JSPFactory.java +++ b/bundles/org.eclipse.equinox.jsp.jasper.registry/src/org/eclipse/equinox/jsp/jasper/registry/JSPFactory.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2008 IBM Corporation and others. + * Copyright (c) 2007, 2017 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -34,17 +34,19 @@ public class JSPFactory implements IExecutableExtensionFactory, IExecutableExten private IConfigurationElement config; private String bundleResourcePath; + @Override public void setInitializationData(IConfigurationElement config, String propertyName, Object data) throws CoreException { this.config = config; if (data != null) { if (data instanceof String) bundleResourcePath = (String) data; else if (data instanceof Hashtable) { - bundleResourcePath = (String) ((Hashtable) data).get("path"); //$NON-NLS-1$ + bundleResourcePath = ((Hashtable<String, String>) data).get("path"); //$NON-NLS-1$ } } } + @Override public Object create() throws CoreException { Bundle b = Activator.getBundle(config.getContributor().getName()); //check for null and illegal state exception String alias = config.getAttribute("alias"); //$NON-NLS-1$ |