Author: adietish
Date: 2010-12-14 05:55:49 -0500 (Tue, 14 Dec 2010)
New Revision: 27441
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudInstance.java
Log:
[JBIDE-7889] cleanup, fixing bug with hostname
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudInstance.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudInstance.java 2010-12-14
10:49:41 UTC (rev 27440)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudInstance.java 2010-12-14
10:55:49 UTC (rev 27441)
@@ -153,9 +153,11 @@
public String getHostName() {
List<String> hostNames = getHostNames();
- if (hostNames != null && hostNames.size() > 0)
- return hostNames.get(0);
- return null;
+ String hostName = null;
+ if (hostNames != null && hostNames.size() >= 1) {
+ hostName = hostNames.get(0);
+ }
+ return hostName;
}
protected boolean performInstanceAction(Action action, InternalDeltaCloudClient client)
Show replies by date