Author: adietish
Date: 2012-02-22 04:29:58 -0500 (Wed, 22 Feb 2012)
New Revision: 38967
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/CreateOrEditDomainAction.java
Log:
removed unnecessary null check
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/CreateOrEditDomainAction.java
===================================================================
---
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/CreateOrEditDomainAction.java 2012-02-22
09:20:18 UTC (rev 38966)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/CreateOrEditDomainAction.java 2012-02-22
09:29:58 UTC (rev 38967)
@@ -36,7 +36,7 @@
@Override
public void run() {
final ITreeSelection treeSelection = (ITreeSelection) selection;
- if (selection != null && selection instanceof ITreeSelection
+ if (selection instanceof ITreeSelection
&& treeSelection.getFirstElement() instanceof IUser) {
IWizard domainDialog = null;
final IUser user = (IUser) treeSelection.getFirstElement();