← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2051: Changed string == reported by findbugs.

 

------------------------------------------------------------
revno: 2051
committer: Jo Størset <storset@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2010-11-12 21:33:47 +0530
message:
  Changed string == reported by findbugs.
modified:
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/sqlview/AddSqlViewAction.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/sqlview/AddSqlViewAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/sqlview/AddSqlViewAction.java	2010-07-19 15:20:24 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/sqlview/AddSqlViewAction.java	2010-11-12 16:03:47 +0000
@@ -82,11 +82,11 @@
 
     public String execute()
     {
-        if ( (name == null) || (name.trim() == "") )
+        if ( (name == null) || (name.trim().isEmpty()) )
         {
             return ERROR;
         }
-        if ( (sqlquery == null) || (sqlquery.trim() == "") )
+        if ( (sqlquery == null) || (sqlquery.trim().isEmpty()) )
         {
             return ERROR;
         }