commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1452028 [3/7] - in /commons/proper/beanutils/trunk/src: changes/ main/java/org/apache/commons/beanutils/ main/java/org/apache/commons/beanutils/converters/ main/java/org/apache/commons/beanutils/locale/ main/java/org/apache/commons/beanuti...
Date Sun, 03 Mar 2013 11:19:54 GMT
Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/DateLocaleConverter.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/DateLocaleConverter.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/DateLocaleConverter.java (original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/DateLocaleConverter.java Sun Mar  3 11:19:49 2013
@@ -31,10 +31,10 @@ import java.util.Locale;
 
 
 /**
- * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+ * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter}
  * implementation that converts an incoming
  * locale-sensitive String into a <code>java.util.Date</code> object,
- * optionally using a default value or throwing a 
+ * optionally using a default value or throwing a
  * {@link org.apache.commons.beanutils.ConversionException}
  * if a conversion error occurs.</p>
  *
@@ -52,16 +52,16 @@ public class DateLocaleConverter extends
     /** Should the date conversion be lenient? */
     boolean isLenient = false;
 
-    /** 
-     * Default Pattern Characters 
-     * 
+    /**
+     * Default Pattern Characters
+     *
      */
     private static final String DEFAULT_PATTERN_CHARS = DateLocaleConverter.initDefaultChars();
 
     // ----------------------------------------------------------- Constructors
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -74,7 +74,7 @@ public class DateLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -87,7 +87,7 @@ public class DateLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -99,7 +99,7 @@ public class DateLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -112,7 +112,7 @@ public class DateLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -125,7 +125,7 @@ public class DateLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -139,7 +139,7 @@ public class DateLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -153,7 +153,7 @@ public class DateLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -167,7 +167,7 @@ public class DateLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -180,7 +180,7 @@ public class DateLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *
@@ -195,7 +195,7 @@ public class DateLocaleConverter extends
 
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -209,7 +209,7 @@ public class DateLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *
@@ -224,7 +224,7 @@ public class DateLocaleConverter extends
     }
 
     // --------------------------------------------------------- Methods
-    
+
     /**
      * Returns whether date formatting is lenient.
      *
@@ -234,10 +234,10 @@ public class DateLocaleConverter extends
     public boolean isLenient() {
         return isLenient;
     }
-    
+
     /**
      * Specify whether or not date-time parsing should be lenient.
-     * 
+     *
      * @param lenient true if the <code>DateFormat</code> used for formatting should be lenient
      * @see java.text.DateFormat#setLenient
      */
@@ -255,12 +255,12 @@ public class DateLocaleConverter extends
      * @param pattern The pattern is used for the convertion
      * @return the converted Date value
      *
-     * @exception org.apache.commons.beanutils.ConversionException 
+     * @exception org.apache.commons.beanutils.ConversionException
      * if conversion cannot be performed successfully
      * @throws ParseException if an error occurs parsing
      */
     protected Object parse(Object value, String pattern) throws ParseException {
- 
+
         // Handle Date
         if (value instanceof java.util.Date) {
             return value;
@@ -274,12 +274,12 @@ public class DateLocaleConverter extends
          if (locPattern) {
              pattern = convertLocalizedPattern(pattern, locale);
          }
- 
+
          // Create Formatter - use default if pattern is null
          DateFormat formatter = pattern == null ? DateFormat.getDateInstance(DateFormat.SHORT, locale)
                                                 : new SimpleDateFormat(pattern, locale);
          formatter.setLenient(isLenient);
- 
+
 
          // Parse the Date
         ParsePosition pos = new ParsePosition(0);
@@ -296,7 +296,7 @@ public class DateLocaleConverter extends
 
         return parsedValue;
      }
-   
+
      /**
       * Convert a pattern from a localized format to the default format.
       *
@@ -305,23 +305,23 @@ public class DateLocaleConverter extends
       * @return pattern in 'default' symbol format
       */
      private String convertLocalizedPattern(String localizedPattern, Locale locale) {
-        
+
          if (localizedPattern == null) {
             return null;
          }
-         
+
          // Note that this is a little obtuse.
-         // However, it is the best way that anyone can come up with 
+         // However, it is the best way that anyone can come up with
          // that works with some 1.4 series JVM.
-         
+
          // Get the symbols for the localized pattern
          DateFormatSymbols localizedSymbols = new DateFormatSymbols(locale);
          String localChars = localizedSymbols.getLocalPatternChars();
- 
+
          if (DEFAULT_PATTERN_CHARS.equals(localChars)) {
              return localizedPattern;
          }
- 
+
          // Convert the localized pattern to default
          String convertedPattern = null;
          try {
@@ -331,9 +331,9 @@ public class DateLocaleConverter extends
          } catch (Exception ex) {
              log.debug("Converting pattern '" + localizedPattern + "' for " + locale, ex);
          }
-         return convertedPattern; 
+         return convertedPattern;
     }
-     
+
     /**
      * <p>Converts a Pattern from one character set to another.</p>
      */
@@ -351,7 +351,7 @@ public class DateLocaleConverter extends
             } else {
                 if (thisChar == '\'') {
                    quoted = true;
-                } else if ((thisChar >= 'a' && thisChar <= 'z') || 
+                } else if ((thisChar >= 'a' && thisChar <= 'z') ||
                            (thisChar >= 'A' && thisChar <= 'Z')) {
                     int index = fromChars.indexOf(thisChar );
                     if (index == -1) {

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/DecimalLocaleConverter.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/DecimalLocaleConverter.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/DecimalLocaleConverter.java (original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/DecimalLocaleConverter.java Sun Mar  3 11:19:49 2013
@@ -27,10 +27,10 @@ import java.util.Locale;
 
 
 /**
- * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+ * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter}
  * implementation that converts an incoming
  * locale-sensitive String into a <code>java.lang.Number</code> object,
- * optionally using a default value or throwing a 
+ * optionally using a default value or throwing a
  * {@link org.apache.commons.beanutils.ConversionException}
  * if a conversion error occurs.</p>
  *
@@ -45,12 +45,12 @@ public class DecimalLocaleConverter exte
     // ----------------------------------------------------- Instance Variables
 
     /** All logging goes through this logger */
-    private final Log log = LogFactory.getLog(DecimalLocaleConverter.class);     
+    private final Log log = LogFactory.getLog(DecimalLocaleConverter.class);
 
     // ----------------------------------------------------------- Constructors
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -63,7 +63,7 @@ public class DecimalLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -76,7 +76,7 @@ public class DecimalLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -88,7 +88,7 @@ public class DecimalLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -101,7 +101,7 @@ public class DecimalLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -114,7 +114,7 @@ public class DecimalLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -128,7 +128,7 @@ public class DecimalLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -142,7 +142,7 @@ public class DecimalLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -156,7 +156,7 @@ public class DecimalLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -169,7 +169,7 @@ public class DecimalLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *
@@ -183,7 +183,7 @@ public class DecimalLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -197,7 +197,7 @@ public class DecimalLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *
@@ -215,7 +215,7 @@ public class DecimalLocaleConverter exte
     // --------------------------------------------------------- Methods
 
     /**
-     * Convert the specified locale-sensitive input object into an output 
+     * Convert the specified locale-sensitive input object into an output
      * object of the specified type.
      *
      * @param value The input object to be converted
@@ -238,7 +238,7 @@ public class DecimalLocaleConverter exte
         // object.
         DecimalFormat formatter = (DecimalFormat) DecimalFormat.getInstance(locale);
 
-        // if some constructors default pattern to null, it makes only sense 
+        // if some constructors default pattern to null, it makes only sense
         // to handle null pattern gracefully
         if (pattern != null) {
             if (locPattern) {

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/DoubleLocaleConverter.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/DoubleLocaleConverter.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/DoubleLocaleConverter.java (original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/DoubleLocaleConverter.java Sun Mar  3 11:19:49 2013
@@ -23,10 +23,10 @@ import java.util.Locale;
 
 
 /**
- * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+ * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter}
  * implementation that converts an incoming
  * locale-sensitive String into a <code>java.lang.Double</code> object,
- * optionally using a default value or throwing a 
+ * optionally using a default value or throwing a
  * {@link org.apache.commons.beanutils.ConversionException}
  * if a conversion error occurs.</p>
  *
@@ -39,7 +39,7 @@ public class DoubleLocaleConverter exten
     // ----------------------------------------------------------- Constructors
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -52,7 +52,7 @@ public class DoubleLocaleConverter exten
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -65,7 +65,7 @@ public class DoubleLocaleConverter exten
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -77,7 +77,7 @@ public class DoubleLocaleConverter exten
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -90,7 +90,7 @@ public class DoubleLocaleConverter exten
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -103,7 +103,7 @@ public class DoubleLocaleConverter exten
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -117,7 +117,7 @@ public class DoubleLocaleConverter exten
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -131,7 +131,7 @@ public class DoubleLocaleConverter exten
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -145,7 +145,7 @@ public class DoubleLocaleConverter exten
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -158,7 +158,7 @@ public class DoubleLocaleConverter exten
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *
@@ -172,7 +172,7 @@ public class DoubleLocaleConverter exten
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -186,7 +186,7 @@ public class DoubleLocaleConverter exten
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/FloatLocaleConverter.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/FloatLocaleConverter.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/FloatLocaleConverter.java (original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/FloatLocaleConverter.java Sun Mar  3 11:19:49 2013
@@ -217,7 +217,7 @@ public class FloatLocaleConverter extend
    protected Object parse(Object value, String pattern) throws ParseException {
       final Number parsed = (Number) super.parse(value, pattern);
       double doubleValue = parsed.doubleValue();
-      double posDouble = (doubleValue >= (double)0) ? doubleValue : (doubleValue * (double)-1);
+      double posDouble = (doubleValue >= 0) ? doubleValue : (doubleValue * -1);
       if (posDouble != 0 && (posDouble < Float.MIN_VALUE || posDouble > Float.MAX_VALUE)) {
           throw new ConversionException("Supplied number is not of type Float: "+parsed);
       }

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/LongLocaleConverter.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/LongLocaleConverter.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/LongLocaleConverter.java (original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/LongLocaleConverter.java Sun Mar  3 11:19:49 2013
@@ -22,10 +22,10 @@ import java.text.ParseException;
 
 
 /**
- * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+ * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter}
  * implementation that converts an incoming
  * locale-sensitive String into a <code>java.lang.Long</code> object,
- * optionally using a default value or throwing a 
+ * optionally using a default value or throwing a
  * {@link org.apache.commons.beanutils.ConversionException}
  * if a conversion error occurs.</p>
  *
@@ -38,7 +38,7 @@ public class LongLocaleConverter extends
     // ----------------------------------------------------------- Constructors
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -51,7 +51,7 @@ public class LongLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -64,7 +64,7 @@ public class LongLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -76,7 +76,7 @@ public class LongLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -89,7 +89,7 @@ public class LongLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -102,7 +102,7 @@ public class LongLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -116,7 +116,7 @@ public class LongLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -130,7 +130,7 @@ public class LongLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -144,7 +144,7 @@ public class LongLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -157,7 +157,7 @@ public class LongLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *
@@ -171,7 +171,7 @@ public class LongLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -185,7 +185,7 @@ public class LongLocaleConverter extends
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/ShortLocaleConverter.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/ShortLocaleConverter.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/ShortLocaleConverter.java (original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/ShortLocaleConverter.java Sun Mar  3 11:19:49 2013
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
+
 package org.apache.commons.beanutils.locale.converters;
 
 import java.util.Locale;
@@ -23,10 +23,10 @@ import org.apache.commons.beanutils.Conv
 
 
 /**
- * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+ * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter}
  * implementation that converts an incoming
  * locale-sensitive String into a <code>java.lang.Short</code> object,
- * optionally using a default value or throwing a 
+ * optionally using a default value or throwing a
  * {@link org.apache.commons.beanutils.ConversionException}
  * if a conversion error occurs.</p>
  *
@@ -38,7 +38,7 @@ public class ShortLocaleConverter extend
     // ----------------------------------------------------------- Constructors
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -51,7 +51,7 @@ public class ShortLocaleConverter extend
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -64,7 +64,7 @@ public class ShortLocaleConverter extend
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -76,7 +76,7 @@ public class ShortLocaleConverter extend
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -89,7 +89,7 @@ public class ShortLocaleConverter extend
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -102,7 +102,7 @@ public class ShortLocaleConverter extend
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -116,7 +116,7 @@ public class ShortLocaleConverter extend
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -130,7 +130,7 @@ public class ShortLocaleConverter extend
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -144,7 +144,7 @@ public class ShortLocaleConverter extend
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -157,7 +157,7 @@ public class ShortLocaleConverter extend
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *
@@ -171,7 +171,7 @@ public class ShortLocaleConverter extend
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -185,7 +185,7 @@ public class ShortLocaleConverter extend
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/SqlDateLocaleConverter.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/SqlDateLocaleConverter.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/SqlDateLocaleConverter.java (original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/SqlDateLocaleConverter.java Sun Mar  3 11:19:49 2013
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
+
 package org.apache.commons.beanutils.locale.converters;
 
 import java.sql.Date;
@@ -22,10 +22,10 @@ import java.text.ParseException;
 import java.util.Locale;
 
 /**
- * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+ * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter}
  * implementation that converts an incoming
  * locale-sensitive String into a <code>java.sql.Date</code> object,
- * optionally using a default value or throwing a 
+ * optionally using a default value or throwing a
  * {@link org.apache.commons.beanutils.ConversionException}
  * if a conversion error occurs.</p>
  *
@@ -38,7 +38,7 @@ public class SqlDateLocaleConverter exte
     // ----------------------------------------------------------- Constructors
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -51,7 +51,7 @@ public class SqlDateLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -64,7 +64,7 @@ public class SqlDateLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -76,7 +76,7 @@ public class SqlDateLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -89,7 +89,7 @@ public class SqlDateLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -102,7 +102,7 @@ public class SqlDateLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -116,7 +116,7 @@ public class SqlDateLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -130,7 +130,7 @@ public class SqlDateLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -144,7 +144,7 @@ public class SqlDateLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -157,7 +157,7 @@ public class SqlDateLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *
@@ -171,7 +171,7 @@ public class SqlDateLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -185,7 +185,7 @@ public class SqlDateLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/SqlTimeLocaleConverter.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/SqlTimeLocaleConverter.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/SqlTimeLocaleConverter.java (original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/SqlTimeLocaleConverter.java Sun Mar  3 11:19:49 2013
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
+
 package org.apache.commons.beanutils.locale.converters;
 
 import java.sql.Time;
@@ -22,10 +22,10 @@ import java.text.ParseException;
 import java.util.Locale;
 
 /**
- * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+ * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter}
  * implementation that converts an incoming
  * locale-sensitive String into a <code>java.sql.Time</code> object,
- * optionally using a default value or throwing a 
+ * optionally using a default value or throwing a
  * {@link org.apache.commons.beanutils.ConversionException}
  * if a conversion error occurs.</p>
  *
@@ -38,7 +38,7 @@ public class SqlTimeLocaleConverter exte
     // ----------------------------------------------------------- Constructors
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -51,7 +51,7 @@ public class SqlTimeLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -64,7 +64,7 @@ public class SqlTimeLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -76,7 +76,7 @@ public class SqlTimeLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -89,7 +89,7 @@ public class SqlTimeLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -102,7 +102,7 @@ public class SqlTimeLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -116,7 +116,7 @@ public class SqlTimeLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -130,7 +130,7 @@ public class SqlTimeLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -144,7 +144,7 @@ public class SqlTimeLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -157,7 +157,7 @@ public class SqlTimeLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *
@@ -171,7 +171,7 @@ public class SqlTimeLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -185,7 +185,7 @@ public class SqlTimeLocaleConverter exte
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/SqlTimestampLocaleConverter.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/SqlTimestampLocaleConverter.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/SqlTimestampLocaleConverter.java (original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/SqlTimestampLocaleConverter.java Sun Mar  3 11:19:49 2013
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
+
 package org.apache.commons.beanutils.locale.converters;
 
 import java.sql.Timestamp;
@@ -22,10 +22,10 @@ import java.text.ParseException;
 import java.util.Locale;
 
 /**
- * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+ * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter}
  * implementation that converts an incoming
  * locale-sensitive String into a <code>java.sql.Timestamp</code> object,
- * optionally using a default value or throwing a 
+ * optionally using a default value or throwing a
  * {@link org.apache.commons.beanutils.ConversionException}
  * if a conversion error occurs.</p>
  *
@@ -38,7 +38,7 @@ public class SqlTimestampLocaleConverter
     // ----------------------------------------------------------- Constructors
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -51,7 +51,7 @@ public class SqlTimestampLocaleConverter
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -64,7 +64,7 @@ public class SqlTimestampLocaleConverter
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -76,7 +76,7 @@ public class SqlTimestampLocaleConverter
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -89,7 +89,7 @@ public class SqlTimestampLocaleConverter
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -102,7 +102,7 @@ public class SqlTimestampLocaleConverter
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will throw a {@link org.apache.commons.beanutils.ConversionException}
      * if a conversion error occurs.
      *
@@ -116,7 +116,7 @@ public class SqlTimestampLocaleConverter
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine and an unlocalized pattern is used
@@ -129,7 +129,7 @@ public class SqlTimestampLocaleConverter
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. The locale is the default locale for
      * this instance of the Java Virtual Machine.
@@ -143,7 +143,7 @@ public class SqlTimestampLocaleConverter
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -156,7 +156,7 @@ public class SqlTimestampLocaleConverter
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *
@@ -170,7 +170,7 @@ public class SqlTimestampLocaleConverter
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs. An unlocalized pattern is used for the convertion.
      *
@@ -184,7 +184,7 @@ public class SqlTimestampLocaleConverter
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
+     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
      * that will return the specified default value
      * if a conversion error occurs.
      *

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/StringLocaleConverter.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/StringLocaleConverter.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/StringLocaleConverter.java (original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/locale/converters/StringLocaleConverter.java Sun Mar  3 11:19:49 2013
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
+
 package org.apache.commons.beanutils.locale.converters;
 
 import org.apache.commons.beanutils.locale.BaseLocaleConverter;

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/A.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/A.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/A.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/A.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 
 package org.apache.commons.beanutils;
@@ -25,9 +25,9 @@ import java.io.OutputStream;
  *
  */
 public class A {
-    
+
     boolean called = false;
-    
+
     public void foo(OutputStream os)
     {
         called = true;

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/AbstractChild.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/AbstractChild.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/AbstractChild.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/AbstractChild.java Sun Mar  3 11:19:49 2013
@@ -5,30 +5,30 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
- 
+ */
+
 package org.apache.commons.beanutils;
 
 public class AbstractChild implements Child {
-    
+
     private String name;
-    
+
     protected void setName(String name)
     {
         this.name = name;
     }
-    
+
     public String getName()
     {
         return name;
     }
-    
+
 }

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/AbstractParent.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/AbstractParent.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/AbstractParent.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/AbstractParent.java Sun Mar  3 11:19:49 2013
@@ -5,46 +5,46 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils;
 
 public abstract class AbstractParent {
-    
+
     private Child child;
-    
+
     public Child getChild()
     {
         return child;
     }
 
     /**
-     * Method which matches signature but which has wrong parameters 
+     * Method which matches signature but which has wrong parameters
      */
     public String testAddChild(String badParameter) {
         return null;
     }
 
     /**
-     * Method which matches signature but which has wrong parameters 
+     * Method which matches signature but which has wrong parameters
      */
     public String testAddChild2(String ignore, String badParameter) {
         return null;
     }
-    
+
     public String testAddChild(Child child) {
         this.child = child;
         return child.getName();
     }
-    
+
 
     public String testAddChild2(String ignore, Child child) {
         this.child = child;

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/AlphaBean.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/AlphaBean.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/AlphaBean.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/AlphaBean.java Sun Mar  3 11:19:49 2013
@@ -5,36 +5,36 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils;
 
 public class AlphaBean extends AbstractParent implements Child {
-    
+
     private String name;
-    
+
     public AlphaBean() {}
-    
+
     public AlphaBean(String name) {
         setName(name);
     }
-    
+
     public String getName() {
         return name;
-    }    
-    
+    }
+
     public void setName(String name) {
         this.name = name;
     }
-    
+
     /**
      * Used for testing that correct exception is thrown.
      */

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BasicDynaBeanTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BasicDynaBeanTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BasicDynaBeanTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BasicDynaBeanTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 
 package org.apache.commons.beanutils;

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanComparatorTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanComparatorTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanComparatorTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanComparatorTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils;
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanMapTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanMapTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanMapTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanMapTestCase.java Sun Mar  3 11:19:49 2013
@@ -32,9 +32,9 @@ import org.apache.commons.collections.Tr
 
 /**
  * Test cases for BeanMap
- * 
+ *
  * @version $Revision$ $Date$
- * 
+ *
  * @author Morgan Delagrange
  * @author Stephen Colebourne
  */
@@ -43,7 +43,7 @@ public class BeanMapTestCase extends Abs
     public BeanMapTestCase(String testName) {
         super(testName);
     }
-    
+
     public static void main(String[] args) {
         TestRunner.run(suite());
     }
@@ -65,7 +65,7 @@ public class BeanMapTestCase extends Abs
         }
         public void setSome\2Value(\1 value) {
             some\2 = value;
-        } 
+        }
 
   Also note:  The sample keys and mappings were generated manually.
 */
@@ -170,7 +170,7 @@ public class BeanMapTestCase extends Abs
     public static class TestException extends RuntimeException {
         private static final long serialVersionUID = 1L;
     }
-    
+
     // note to self.  The Sample keys were generated by copying the field
     // declarations and using the following regular expression search and replace:
     //
@@ -356,7 +356,7 @@ public class BeanMapTestCase extends Abs
         Method method = BeanWithProperties.class.getDeclaredMethod("getSomeIntegerValue", null);
         assertEquals(method, map.getReadMethod("someIntegerValue"));
     }
-    
+
     public void testMethodMutator() throws Exception {
         BeanMap map = (BeanMap) makeFullMap();
         Method method = BeanWithProperties.class.getDeclaredMethod("setSomeIntegerValue", new Class[] {Integer.class});

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanPredicateTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanPredicateTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanPredicateTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanPredicateTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,16 +5,16 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
- 
+ */
+
 package org.apache.commons.beanutils;
 
 import junit.framework.TestCase;
@@ -25,34 +25,34 @@ import org.apache.commons.collections.fu
 import org.apache.commons.collections.functors.NullPredicate;
 
 public class BeanPredicateTestCase extends TestCase {
-   
+
     public BeanPredicateTestCase(String name) {
         super(name);
     }
 
     public void testEqual() {
-        BeanPredicate predicate = 
+        BeanPredicate predicate =
             new BeanPredicate("stringProperty",new EqualPredicate("foo"));
         assertTrue(predicate.evaluate(new TestBean("foo")));
         assertTrue(!predicate.evaluate(new TestBean("bar")));
     }
 
     public void testNotEqual() {
-        BeanPredicate predicate = 
+        BeanPredicate predicate =
             new BeanPredicate("stringProperty",new NotPredicate( new EqualPredicate("foo")));
         assertTrue(!predicate.evaluate(new TestBean("foo")));
         assertTrue(predicate.evaluate(new TestBean("bar")));
     }
 
     public void testInstanceOf() {
-        BeanPredicate predicate = 
+        BeanPredicate predicate =
             new BeanPredicate("stringProperty",new InstanceofPredicate( String.class ));
         assertTrue(predicate.evaluate(new TestBean("foo")));
         assertTrue(predicate.evaluate(new TestBean("bar")));
     }
 
     public void testNull() {
-        BeanPredicate predicate = 
+        BeanPredicate predicate =
             new BeanPredicate("stringProperty", NullPredicate.INSTANCE);
         String nullString = null;
         assertTrue(predicate.evaluate(new TestBean(nullString)));

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanPropertyValueChangeClosureTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanPropertyValueChangeClosureTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanPropertyValueChangeClosureTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanPropertyValueChangeClosureTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,16 +5,16 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
- 
+ */
+
 package org.apache.commons.beanutils;
 
 import junit.framework.TestCase;
@@ -26,7 +26,7 @@ import junit.framework.TestCase;
  * @author Norm Deane
  */
 public class BeanPropertyValueChangeClosureTestCase extends TestCase {
-   
+
     private static final Integer expectedIntegerValue = new Integer(123);
     private static final Float expectedFloatValue = new Float(123.123f);
     private static final Double expectedDoubleValue = new Double(567879.12344d);
@@ -41,7 +41,7 @@ public class BeanPropertyValueChangeClos
     public BeanPropertyValueChangeClosureTestCase(String name) {
         super(name);
     }
-    
+
     /**
      * Test execute with simple float property and Float value.
      */
@@ -58,7 +58,7 @@ public class BeanPropertyValueChangeClos
         try {
             new BeanPropertyValueChangeClosure("floatProperty", "123").execute(new TestBean());
             fail("Should have thrown an IllegalArgumentException");
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* this is what we expect */
         }
     }
@@ -70,7 +70,7 @@ public class BeanPropertyValueChangeClos
         try {
             new BeanPropertyValueChangeClosure("floatProperty", expectedDoubleValue).execute(new TestBean());
             fail("Should have thrown an IllegalArgumentException");
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* this is what we expect */
         }
     }
@@ -100,7 +100,7 @@ public class BeanPropertyValueChangeClos
         try {
             new BeanPropertyValueChangeClosure("doubleProperty", "123").execute(new TestBean());
             fail("Should have thrown an IllegalArgumentException");
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* this is what we expect */
         }
     }
@@ -130,7 +130,7 @@ public class BeanPropertyValueChangeClos
         try {
             new BeanPropertyValueChangeClosure("intProperty", expectedDoubleValue).execute(new TestBean());
             fail("Should have thrown an IllegalArgumentException");
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* this is what we expect */
         }
     }
@@ -142,7 +142,7 @@ public class BeanPropertyValueChangeClos
         try {
             new BeanPropertyValueChangeClosure("intProperty", "123").execute(new TestBean());
             fail("Should have thrown an IllegalArgumentException");
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* this is what we expect */
         }
     }
@@ -154,7 +154,7 @@ public class BeanPropertyValueChangeClos
         try {
             new BeanPropertyValueChangeClosure("intProperty", expectedFloatValue).execute(new TestBean());
             fail("Should have thrown an IllegalArgumentException");
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* this is what we expect */
         }
     }
@@ -184,7 +184,7 @@ public class BeanPropertyValueChangeClos
         try {
             new BeanPropertyValueChangeClosure("booleanProperty", "true").execute(new TestBean());
             fail("Should have thrown an IllegalArgumentException");
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* this is what we expect */
         }
     }
@@ -205,7 +205,7 @@ public class BeanPropertyValueChangeClos
         try {
             new BeanPropertyValueChangeClosure("byteProperty", "foo").execute(new TestBean());
             fail("Should have thrown an IllegalArgumentException");
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* this is what we expect */
         }
     }
@@ -217,7 +217,7 @@ public class BeanPropertyValueChangeClos
         try {
             new BeanPropertyValueChangeClosure("intProperty", null).execute(new TestBean());
             fail("Should have thrown an IllegalArgumentException");
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* this is what we expect */
         }
     }
@@ -229,7 +229,7 @@ public class BeanPropertyValueChangeClos
         try {
             new BeanPropertyValueChangeClosure("readOnlyProperty", "foo").execute(new TestBean());
             fail("Should have thrown an IllegalArgumentException");
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* this is what we expect */
         }
     }
@@ -259,7 +259,7 @@ public class BeanPropertyValueChangeClos
         try {
             new BeanPropertyValueChangeClosure("anotherNested.stringProperty", "foo").execute(new TestBean());
             fail("Should have thrown an IllegalArgumentException");
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* this is what we expect */
         }
     }
@@ -315,7 +315,7 @@ public class BeanPropertyValueChangeClos
         try {
             new BeanPropertyValueChangeClosure("bogusProperty", "foo").execute(new TestBean());
             fail("Should have thrown an IllegalArgumentException");
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* this is what we expect */
         }
     }

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanPropertyValueEqualsPredicateTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanPropertyValueEqualsPredicateTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanPropertyValueEqualsPredicateTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/BeanPropertyValueEqualsPredicateTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,16 +5,16 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
- 
+ */
+
 package org.apache.commons.beanutils;
 
 import junit.framework.TestCase;
@@ -26,7 +26,7 @@ import junit.framework.TestCase;
  * @author Norm Deane
  */
 public class BeanPropertyValueEqualsPredicateTestCase extends TestCase {
-   
+
     private static final Integer expectedIntegerValue = new Integer(123);
     private static final Float expectedFloatValue = new Float(123.123f);
     private static final Double expectedDoubleValue = new Double(567879.12344d);
@@ -46,7 +46,7 @@ public class BeanPropertyValueEqualsPred
      * Test evaluate with simple String property.
      */
     public void testEvaluateWithSimpleStringProperty() {
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("stringProperty","foo");
         assertTrue(predicate.evaluate(new TestBean("foo")));
         assertTrue(!predicate.evaluate(new TestBean("bar")));
@@ -56,7 +56,7 @@ public class BeanPropertyValueEqualsPred
      * Test evaluate with simple String property and null values.
      */
     public void testEvaluateWithSimpleStringPropertyWithNullValues() {
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("stringProperty",null);
         assertTrue(predicate.evaluate(new TestBean((String) null)));
         assertTrue(!predicate.evaluate(new TestBean("bar")));
@@ -66,7 +66,7 @@ public class BeanPropertyValueEqualsPred
      * Test evaluate with nested property.
      */
     public void testEvaluateWithNestedProperty() {
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("anotherNested.stringProperty","match");
         TestBean testBean = new TestBean();
         TestBean nestedBean = new TestBean("match");
@@ -80,13 +80,13 @@ public class BeanPropertyValueEqualsPred
      * Test evaluate with null in property path and ignore=false.
      */
     public void testEvaluateWithNullInPath() {
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("anotherNested.stringProperty","foo");
         try {
             // try to evaluate the predicate
             predicate.evaluate(new TestBean());
             fail("Should have throw IllegalArgumentException");
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* ignore this is what should happen */
         }
     }
@@ -95,7 +95,7 @@ public class BeanPropertyValueEqualsPred
      * Test evaluate with null in property path and ignore=true.
      */
     public void testEvaluateWithNullInPathAndIgnoreTrue() {
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("anotherNested.stringProperty","foo", true);
         try {
             assertTrue(!predicate.evaluate(new TestBean()));
@@ -108,7 +108,7 @@ public class BeanPropertyValueEqualsPred
      * Test evaluate with int property.
      */
     public void testEvaluateWithIntProperty() {
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("intProperty",expectedIntegerValue);
         assertTrue(predicate.evaluate(new TestBean(expectedIntegerValue.intValue())));
         assertTrue(!predicate.evaluate(new TestBean(expectedIntegerValue.intValue() - 1)));
@@ -118,7 +118,7 @@ public class BeanPropertyValueEqualsPred
      * Test evaluate with float property.
      */
     public void testEvaluateWithFloatProperty() {
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("floatProperty",expectedFloatValue);
         assertTrue(predicate.evaluate(new TestBean(expectedFloatValue.floatValue())));
         assertTrue(!predicate.evaluate(new TestBean(expectedFloatValue.floatValue() - 1)));
@@ -128,7 +128,7 @@ public class BeanPropertyValueEqualsPred
      * Test evaluate with double property.
      */
     public void testEvaluateWithDoubleProperty() {
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("doubleProperty",expectedDoubleValue);
         assertTrue(predicate.evaluate(new TestBean(expectedDoubleValue.doubleValue())));
         assertTrue(!predicate.evaluate(new TestBean(expectedDoubleValue.doubleValue() - 1)));
@@ -138,7 +138,7 @@ public class BeanPropertyValueEqualsPred
      * Test evaluate with boolean property.
      */
     public void testEvaluateWithBooleanProperty() {
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("booleanProperty",expectedBooleanValue);
         assertTrue(predicate.evaluate(new TestBean(expectedBooleanValue.booleanValue())));
         assertTrue(!predicate.evaluate(new TestBean(!expectedBooleanValue.booleanValue())));
@@ -148,7 +148,7 @@ public class BeanPropertyValueEqualsPred
      * Test evaluate with byte property.
      */
     public void testEvaluateWithByteProperty() {
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("byteProperty",expectedByteValue);
         TestBean testBean = new TestBean();
         testBean.setByteProperty(expectedByteValue.byteValue());
@@ -162,7 +162,7 @@ public class BeanPropertyValueEqualsPred
      */
     public void testEvaluateWithMappedProperty() {
         // try a key that is in the map
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("mappedProperty(test-key)","match");
         TestBean testBean = new TestBean();
         testBean.setMappedProperty("test-key", "match");
@@ -180,7 +180,7 @@ public class BeanPropertyValueEqualsPred
      */
     public void testEvaluateWithIndexedProperty() {
         // try a valid index
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("intIndexed[0]",expectedIntegerValue);
         TestBean testBean = new TestBean();
         testBean.setIntIndexed(0, expectedIntegerValue.intValue());
@@ -193,7 +193,7 @@ public class BeanPropertyValueEqualsPred
 
         try {
             assertTrue(!predicate.evaluate(testBean));
-        } catch (ArrayIndexOutOfBoundsException e) { 
+        } catch (ArrayIndexOutOfBoundsException e) {
             /* this is what should happen */
         }
     }
@@ -202,7 +202,7 @@ public class BeanPropertyValueEqualsPred
      * Test evaluate with primitive property and null value.
      */
     public void testEvaluateWithPrimitiveAndNull() {
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("intProperty",null);
         assertTrue(!predicate.evaluate(new TestBean(0)));
 
@@ -217,7 +217,7 @@ public class BeanPropertyValueEqualsPred
      * Test evaluate with nested mapped property.
      */
     public void testEvaluateWithNestedMappedProperty() {
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("anotherNested.mappedProperty(test-key)","match");
         TestBean testBean = new TestBean();
         TestBean nestedBean = new TestBean();
@@ -234,7 +234,7 @@ public class BeanPropertyValueEqualsPred
     public void testEvaluateWithWriteOnlyProperty() {
         try {
             new BeanPropertyValueEqualsPredicate("writeOnlyProperty", null).evaluate(new TestBean());
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* This is what should happen */
         }
     }
@@ -244,7 +244,7 @@ public class BeanPropertyValueEqualsPred
      */
     public void testEvaluateWithReadOnlyProperty() {
         TestBean testBean = new TestBean();
-        BeanPropertyValueEqualsPredicate predicate = 
+        BeanPropertyValueEqualsPredicate predicate =
             new BeanPropertyValueEqualsPredicate("readOnlyProperty",testBean.getReadOnlyProperty());
         assertTrue(predicate.evaluate(new TestBean()));
     }
@@ -255,7 +255,7 @@ public class BeanPropertyValueEqualsPred
     public void testEvaluateWithInvalidPropertyName() {
         try {
             new BeanPropertyValueEqualsPredicate("bogusProperty", null).evaluate(new TestBean());
-        } catch (IllegalArgumentException e) { 
+        } catch (IllegalArgumentException e) {
             /* This is what should happen */
         }
     }



Mime
View raw message