Related to issue 19778.Remove not needed brackets.
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Tue, 14 Feb 2012 18:37:32 +0100
changeset 15654 70d3b55c5d2c
parent 15653 fee44d15d667
child 15655 0b9c8bb43366
Related to issue 19778.Remove not needed brackets.
src/org/openbravo/erpCommon/utility/DateUtility.java
--- a/src/org/openbravo/erpCommon/utility/DateUtility.java	Tue Feb 14 18:31:43 2012 +0100
+++ b/src/org/openbravo/erpCommon/utility/DateUtility.java	Tue Feb 14 18:37:32 2012 +0100
@@ -81,7 +81,7 @@
     String dateFormat = OBPropertiesProvider.getInstance().getOpenbravoProperties()
         .getProperty("dateFormat.java");
     SimpleDateFormat outputFormat = new SimpleDateFormat(dateFormat);
-    return (outputFormat.parse(strDate));
+    return outputFormat.parse(strDate);
   }
 
   /**
@@ -107,7 +107,7 @@
     String dateFormat = OBPropertiesProvider.getInstance().getOpenbravoProperties()
         .getProperty("dateTimeFormat.java");
     SimpleDateFormat outputFormat = new SimpleDateFormat(dateFormat);
-    return (outputFormat.parse(dateTime));
+    return outputFormat.parse(dateTime);
   }
 
   /**
@@ -202,7 +202,7 @@
     final int weekday = Day.get(Calendar.DAY_OF_WEEK);
     // Gets the number of the day of the week: 1-Sunday, 2-Monday, 3-Tuesday, 4-Wednesday,
     // 5-Thursday, 6-Friday, 7-Saturday
-    return (weekday == 1 || weekday == 7);
+    return weekday == 1 || weekday == 7;
   }
 
   /**
@@ -220,7 +220,7 @@
       throws ParseException {
     final Date date1 = dateFormatter.parse(strDate1);
     final Date date2 = dateFormatter.parse(strDate2);
-    return (date1.after(date2));
+    return date1.after(date2);
   }
 
 }