commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1208459 - /commons/proper/jexl/branches/2.0-API-COMPAT/src/main/java/org/apache/commons/jexl2/introspection/UberspectImpl.java
Date Wed, 30 Nov 2011 14:54:34 GMT
Author: sebb
Date: Wed Nov 30 14:54:34 2011
New Revision: 1208459

URL: http://svn.apache.org/viewvc?rev=1208459&view=rev
Log:
Initial set of fixes to improve binary compatibility - 2

Modified:
    commons/proper/jexl/branches/2.0-API-COMPAT/src/main/java/org/apache/commons/jexl2/introspection/UberspectImpl.java

Modified: commons/proper/jexl/branches/2.0-API-COMPAT/src/main/java/org/apache/commons/jexl2/introspection/UberspectImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0-API-COMPAT/src/main/java/org/apache/commons/jexl2/introspection/UberspectImpl.java?rev=1208459&r1=1208458&r2=1208459&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0-API-COMPAT/src/main/java/org/apache/commons/jexl2/introspection/UberspectImpl.java
(original)
+++ commons/proper/jexl/branches/2.0-API-COMPAT/src/main/java/org/apache/commons/jexl2/introspection/UberspectImpl.java
Wed Nov 30 14:54:34 2011
@@ -162,12 +162,13 @@ public class UberspectImpl extends Intro
 
     /**
      * Returns a class field.
+     * Only for use by sub-classes, will be made protected in a later version
      * @param obj the object
      * @param name the field name
      * @param info debug info
      * @return a {@link Field}.
      */
-    protected Field getField(Object obj, String name, JexlInfo info) {
+    public Field getField(Object obj, String name, JexlInfo info) {
         final Class<?> clazz = obj instanceof Class<?> ? (Class<?>) obj
: obj.getClass();
         return getField(clazz, name);
     }
@@ -442,8 +443,10 @@ public class UberspectImpl extends Intro
 
     /**
      * A JexlPropertyGet for public fields.
+     * @deprecated Do not use externally - will be made private in a later version
      */
-    private static final class FieldPropertyGet implements JexlPropertyGet {
+    @Deprecated
+    public static final class FieldPropertyGet implements JexlPropertyGet {
         /**
          * The public field.
          */
@@ -495,8 +498,10 @@ public class UberspectImpl extends Intro
 
     /**
      * A JexlPropertySet for public fields.
+    * @deprecated Do not use externally - will be made private in a later version
      */
-    private static final class FieldPropertySet implements JexlPropertySet {
+    @Deprecated
+    public static final class FieldPropertySet implements JexlPropertySet {
         /**
          * The public field.
          */



Mime
View raw message