Skip to content

Commit 49202a4

Browse files
committed
Fix warnings
1 parent 991776f commit 49202a4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • ecl/plugins/org.eclipse.rcptt.ecl.platform/src/org/eclipse/rcptt/ecl/platform/internal/commands

ecl/plugins/org.eclipse.rcptt.ecl.platform/src/org/eclipse/rcptt/ecl/platform/internal/commands/ListPluginsService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@
3535
public class ListPluginsService implements ICommandService {
3636

3737

38+
@Override
3839
public IStatus service(Command command, IProcess context)
3940
throws InterruptedException, CoreException {
4041
ListPlugins cmd = (ListPlugins) command;
4142
boolean includeDeps = cmd.isIncludeDependencies();
42-
State platformState = includeDeps ? Platform.getPlatformAdmin()
43-
.getState() : null;
4443

4544
for (Bundle bundle : PlatformPlugin.getDefault().getBundles()) {
4645
Plugin plugin = ObjectsFactory.eINSTANCE.createPlugin();
@@ -53,7 +52,7 @@ public IStatus service(Command command, IProcess context)
5352
}
5453

5554
if (includeDeps) {
56-
platformState = Platform.getPlatformAdmin().getState();
55+
State platformState = Platform.getPlatformAdmin().getState();
5756
BundleDescription bundleDesc = platformState.getBundle(bundle
5857
.getBundleId());
5958

0 commit comments

Comments
 (0)