harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r447309 - in /incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans: BeanInfoImpl.java PropertyDescriptor.java
Date Mon, 18 Sep 2006 07:45:40 GMT
Author: smishura
Date: Mon Sep 18 00:45:39 2006
New Revision: 447309

URL: http://svn.apache.org/viewvc?view=rev&rev=447309
Log:
Add missing NON-NLS (caused by applying HARMONY-1435)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/BeanInfoImpl.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyDescriptor.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/BeanInfoImpl.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/BeanInfoImpl.java?view=diff&rev=447309&r1=447308&r2=447309
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/BeanInfoImpl.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/BeanInfoImpl.java
Mon Sep 18 00:45:39 2006
@@ -395,15 +395,15 @@
                             beanClass);
                 } catch (IntrospectionException ie) {
                     //no setter or getter
-                    if (methodName.startsWith("set")) {
+                    if (methodName.startsWith("set")) { //$NON-NLS-1$
                         try {
                             propertyDescriptor = new PropertyDescriptor(
                                     propertyName, beanClass, null, methodName);
                         } catch (IntrospectionException e) {
                             //no getter
                         }
-                    } else if (methodName.startsWith("get")
-                            || methodName.startsWith("is")) {
+                    } else if (methodName.startsWith("get") //$NON-NLS-1$
+                            || methodName.startsWith("is")) { //$NON-NLS-1$
                         try {
                             propertyDescriptor = new PropertyDescriptor(
                                     propertyName, beanClass, methodName, null);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyDescriptor.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyDescriptor.java?view=diff&rev=447309&r1=447308&r2=447309
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyDescriptor.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyDescriptor.java
Mon Sep 18 00:45:39 2006
@@ -68,14 +68,14 @@
             if (hasMethod(beanClass, setterName)) {
                 setWriteMethod(beanClass, setterName);
             } else {
-                throw new IntrospectionException(Messages.getString("beans.20"));
+                throw new IntrospectionException(Messages.getString("beans.20")); //$NON-NLS-1$
             }
         }
         if (getterName != null) {
             if (hasMethod(beanClass, getterName)) {
                 setReadMethod(beanClass, getterName);
             } else {
-                throw new IntrospectionException(Messages.getString("beans.1F"));
+                throw new IntrospectionException(Messages.getString("beans.1F")); //$NON-NLS-1$
             }
         }
     }
@@ -125,14 +125,14 @@
             if(hasMethod(beanClass, getterName)) {
                 setReadMethod(beanClass, getterName);
             } else {
-                throw new IntrospectionException(Messages.getString("beans.1F"));
+                throw new IntrospectionException(Messages.getString("beans.1F")); //$NON-NLS-1$
             }
         }
         String setterName = createDefaultMethodName(propertyName, "set"); //$NON-NLS-1$
         if(hasMethod(beanClass, setterName)) {
             setWriteMethod(beanClass, setterName);
         } else {
-            throw new IntrospectionException(Messages.getString("beans.20"));
+            throw new IntrospectionException(Messages.getString("beans.20")); //$NON-NLS-1$
         }
     }
         



Mime
View raw message