]> granicus.if.org Git - icu/commitdiff
ICU-10261 review comment updates
authorScott Russell <DTownSMR@gmail.com>
Thu, 19 Sep 2013 18:02:36 +0000 (18:02 +0000)
committerScott Russell <DTownSMR@gmail.com>
Thu, 19 Sep 2013 18:02:36 +0000 (18:02 +0000)
X-SVN-Rev: 34402

icu4j/main/classes/core/src/com/ibm/icu/text/DateFormat.java

index 3477a5e90f01e42ff54c6705961a88b3ddbf31cc..f83fc3c419706c447152dd707ae547e35ef82ec2 100644 (file)
@@ -453,12 +453,18 @@ public abstract class DateFormat extends UFormat {
      * <br/>
      * PARSE_ALLOW_NUMERIC - indicates tolerance of numeric data when String data may be assumed. eg: YEAR_NAME_FIELD
      * 
-     * @internal ICU 5.2 technology preview
+     * @internal ICU technology preview
      */
     public enum BooleanAttribute { 
-        /** indicates whitespace tolerance. Also included is trailing dot tolerance. */
+        /** 
+         * indicates whitespace tolerance. Also included is trailing dot tolerance. 
+         * @internal ICU technology preview
+         */
         PARSE_ALLOW_WHITESPACE,
-        /** indicates tolerance of numeric data when String data may be assumed. eg: YEAR_NAME_FIELD */
+        /** 
+         * indicates tolerance of numeric data when String data may be assumed. eg: YEAR_NAME_FIELD 
+         * @internal ICU technology preview
+         */
         PARSE_ALLOW_NUMERIC 
     };
     
@@ -1471,7 +1477,7 @@ public abstract class DateFormat extends UFormat {
      * boolean attributes. 
      * 
      * @see BooleanAttribute
-     * @internal ICU 5.2 technology preview
+     * @internal ICU technology preview
      */
     public DateFormat setBooleanAttribute(BooleanAttribute key, boolean value) 
     {
@@ -1490,14 +1496,11 @@ public abstract class DateFormat extends UFormat {
      * if attribute is missing false is returned.
      * 
      * @see BooleanAttribute
-     * @internal ICU 5.2 technology preview
+     * @internal ICU technology preview
      */
     public boolean getBooleanAttribute(BooleanAttribute key) 
     {
-        if(booleanAttributes.contains(key))
-            return true;
-        else 
-            return false;
+        return booleanAttributes.contains(key);
     }