diff options
author | Alexander Kurtakov | 2020-09-15 19:56:45 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2020-09-15 20:15:19 +0000 |
commit | 8bfd133bd715edd8d400035f0823b985d8cb5ab3 (patch) | |
tree | b6ae8b24f6f29cf97ec5ee2e2609960ab7043fc3 | |
parent | b07a417a4c93dad98a8ffb9c134591f721be6dbc (diff) | |
download | rt.equinox.framework-I20201007-1320.tar.gz rt.equinox.framework-I20201007-1320.tar.xz rt.equinox.framework-I20201007-1320.zip |
Fix some SuppressWarnings.Y20201014-1200Y20201013-1200Y20201012-1200Y20201011-1200Y20201010-1200Y20201009-1200Y20201008-1200Y20201006-1200Y20201002-1200Y20201001-1200Y20200930-1200Y20200929-1200Y20200929-0550Y20200928-1200Y20200928-0700Y20200928-0600S4_18_0_M1aS4_18_0_M1I20201014-1800I20201013-1800I20201012-1800I20201012-0750I20201012-0320I20201011-1800I20201010-1800I20201009-1800I20201009-0800I20201009-0430I20201007-1800I20201007-1320I20201007-0600I20201006-1800I20201006-0840I20201006-0600I20201005-1800I20201005-0600I20201004-1800I20201004-0600I20201003-1800I20201003-0600I20201002-1800I20201001-1800I20200930-1800I20200929-1800I20200928-1800I20200927-1800I20200926-1800I20200925-1800I20200924-1800I20200924-0430I20200924-0340I20200922-1800I20200921-1800I20200920-1800I20200919-1800I20200918-1800I20200917-1800I20200916-1800I20200916-0410I20200915-1800
No need to suppress unchecked when one can use emptyList instead of
EMPTY_LIST.
Change-Id: Ibdf803adc6f2b2a1d8956862915a4d14e28960aa
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
3 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.osgi.compatibility.state/META-INF/MANIFEST.MF b/bundles/org.eclipse.osgi.compatibility.state/META-INF/MANIFEST.MF index 3373023b0..43f4325eb 100644 --- a/bundles/org.eclipse.osgi.compatibility.state/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.osgi.compatibility.state/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name Bundle-SymbolicName: org.eclipse.osgi.compatibility.state -Bundle-Version: 1.2.100.qualifier +Bundle-Version: 1.2.200.qualifier ExtensionBundle-Activator: org.eclipse.osgi.compatibility.state.Activator Fragment-Host: org.eclipse.osgi;bundle-version="3.12.0" Bundle-RequiredExecutionEnvironment: JavaSE-1.8 diff --git a/bundles/org.eclipse.osgi.compatibility.state/pom.xml b/bundles/org.eclipse.osgi.compatibility.state/pom.xml index aadd5cd51..38ffb3472 100644 --- a/bundles/org.eclipse.osgi.compatibility.state/pom.xml +++ b/bundles/org.eclipse.osgi.compatibility.state/pom.xml @@ -19,6 +19,6 @@ </parent> <groupId>org.eclipse.osgi</groupId> <artifactId>org.eclipse.osgi.compatibility.state</artifactId> - <version>1.2.100-SNAPSHOT</version> + <version>1.2.200-SNAPSHOT</version> <packaging>eclipse-plugin</packaging> </project> diff --git a/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateImpl.java b/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateImpl.java index f02fde818..6d5fd3a1f 100644 --- a/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateImpl.java +++ b/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateImpl.java @@ -593,8 +593,7 @@ public abstract class StateImpl implements State { ResolverHookFactory currentFactory = hookFactory; if (currentFactory != null) { - @SuppressWarnings("unchecked") - Collection<BundleRevision> triggerRevisions = Collections.unmodifiableCollection(triggers == null ? Collections.EMPTY_LIST : Arrays.asList((BundleRevision[]) triggers)); + Collection<BundleRevision> triggerRevisions = Collections.unmodifiableCollection(triggers == null ? Collections.emptyList() : Arrays.asList((BundleRevision[]) triggers)); begin(triggerRevisions); } ResolverHookException error = null; |