Author: dgolovin
Date: 2009-09-01 19:32:35 -0400 (Tue, 01 Sep 2009)
New Revision: 17409
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java
Log:
clean up the code from snippets like new Integer(value).toString()
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java 2009-09-01
15:34:01 UTC (rev 17408)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/ChangePortDialog.java 2009-09-01
23:32:35 UTC (rev 17409)
@@ -205,15 +205,16 @@
private String countMatches(XPathQuery query) {
if( query == null )
- return new Integer(-1).toString();
+ return String.valueOf(-1);
int count = 0;
XPathFileResult[] fResults = query.getResults();
for( int i = 0; i < fResults.length; i++ ) {
count += fResults[i].getChildren().length;
}
- return new Integer(count).toString();
+ return String.valueOf(count);
}
+
private String safeString(String s) {
return s == null ? "" : s; //$NON-NLS-1$
}
Show replies by date