← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 725: Removed use of String.isEmpty.

 

------------------------------------------------------------
revno: 725
committer: Lars Helge Oeverland larshelge@xxxxxxxxx
branch nick: trunk
timestamp: Tue 2009-09-15 14:48:09 +0200
message:
  Removed use of String.isEmpty.
modified:
  dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/utils/ExcelUtils.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-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/utils/ExcelUtils.java'
--- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/utils/ExcelUtils.java	2009-09-15 10:51:28 +0000
+++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/utils/ExcelUtils.java	2009-09-15 12:48:09 +0000
@@ -132,7 +132,6 @@
 	/* POI methods */
     public static void writeValueByPOI( int row, int column, String value, String type, HSSFSheet sheet,
         HSSFCellStyle cellStyle )
-        throws RowsExceededException, WriteException
     {
         if ( row > 0 && column > 0 )
         {
@@ -168,7 +167,6 @@
     }
 
     public static void writeFormulaByPOI( int row, int column, String formula, HSSFSheet sheet, HSSFCellStyle cellStyle )
-        throws RowsExceededException, WriteException
     {
         if ( row > 0 && column > 0 )
         {
@@ -187,7 +185,7 @@
         {
             int iCol = 0;
 
-            if ( !columnName.isEmpty() )
+            if ( columnName.length() > 0 )
             {
                 char[] characters = columnName.toUpperCase().toCharArray();