diff options
author | Alexander Kurtakov | 2017-09-06 11:50:38 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2017-09-06 12:35:49 +0000 |
commit | 6c0135edf1bd792bf107d96a5fa53681dd1ce6f1 (patch) | |
tree | 3b1cfd707b645d314ce389580c85c3a144c3e364 /bundles/org.eclipse.equinox.p2.publisher | |
parent | 780d9bedcc73cf2daf808b1a16d68565daba871a (diff) | |
download | rt.equinox.p2-6c0135edf1bd792bf107d96a5fa53681dd1ce6f1.tar.gz rt.equinox.p2-6c0135edf1bd792bf107d96a5fa53681dd1ce6f1.tar.xz rt.equinox.p2-6c0135edf1bd792bf107d96a5fa53681dd1ce6f1.zip |
Bug 313553 - [publisher] publish metadata for Provide-Capability and
Require-Capability
Remove redundant type declarations introduced with previous patches.
Change-Id: Ia3a8826ee3dc93a66eb0ed445c374091b68c354a
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.publisher')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/actions/JREAction.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/actions/JREAction.java b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/actions/JREAction.java index 868d31c6b..baacf2e3b 100644 --- a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/actions/JREAction.java +++ b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/actions/JREAction.java @@ -222,9 +222,9 @@ public class JREAction extends AbstractPublisherAction { Version parsedVersion = Version.parseVersion(rawVersion); // complete record -> store - Map<String, Object> capAttrs = new HashMap<String, Object>(); + Map<String, Object> capAttrs = new HashMap<>(); capAttrs.put(NAMESPACE_OSGI_EE, eeName); - capAttrs.put("version", parsedVersion); + capAttrs.put("version", parsedVersion); //$NON-NLS-1$ parsingResult.add(MetadataFactory.createProvidedCapability(NAMESPACE_OSGI_EE, capAttrs)); @@ -305,7 +305,7 @@ public class JREAction extends AbstractPublisherAction { if (jreLocation.isDirectory()) { //Look for a JRE profile file to set version and capabilities - File[] profiles = jreLocation.listFiles((FileFilter) pathname -> pathname.getAbsolutePath().endsWith(".profile")); + File[] profiles = jreLocation.listFiles((FileFilter) pathname -> pathname.getAbsolutePath().endsWith(".profile")); //$NON-NLS-1$ if (profiles != null && profiles.length > 0) { javaProfile = profiles[0]; } |