You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by dm...@apache.org on 2003/06/26 04:17:30 UTC

cvs commit: jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/util BasicTypeConverter.java

dmitri      2003/06/25 19:17:30

  Modified:    jxpath/src/java/org/apache/commons/jxpath/util
                        BasicTypeConverter.java
  Log:
  Change visibility of some methods to protected
  
  Revision  Changes    Path
  1.9       +11 -11    jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/util/BasicTypeConverter.java
  
  Index: BasicTypeConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/util/BasicTypeConverter.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- BasicTypeConverter.java	25 Mar 2003 02:41:34 -0000	1.8
  +++ BasicTypeConverter.java	26 Jun 2003 02:17:30 -0000	1.9
  @@ -336,7 +336,7 @@
               "Cannot convert " + object.getClass() + " to " + toType);
       }
   
  -    private Object convertNullToPrimitive(Class toType) {
  +    protected Object convertNullToPrimitive(Class toType) {
           if (toType == boolean.class) {
               return Boolean.FALSE;
           }
  @@ -364,7 +364,7 @@
           return null;
       }
   
  -    private Object convertStringToPrimitive(Object object, Class toType) {
  +    protected Object convertStringToPrimitive(Object object, Class toType) {
           if (toType == boolean.class || toType == Boolean.class) {
               return Boolean.valueOf((String) object);
           }
  @@ -392,7 +392,7 @@
           return null;
       }
       
  -    private static Number allocateNumber(Class type, double value) {
  +    protected Number allocateNumber(Class type, double value) {
           if (type == Byte.class || type == byte.class) {
               return new Byte((byte) value);
           }
  @@ -414,7 +414,7 @@
           return null;
       }
   
  -    private static boolean canCreateCollection(Class type) {
  +    protected boolean canCreateCollection(Class type) {
           if (!type.isInterface()
               && ((type.getModifiers() | Modifier.ABSTRACT) == 0)) {
               return true;
  @@ -430,7 +430,7 @@
           return false;
       }
   
  -    private static Collection allocateCollection(Class type) {
  +    protected Collection allocateCollection(Class type) {
           if (!type.isInterface()
               && ((type.getModifiers() | Modifier.ABSTRACT) == 0)) {
               try {
  @@ -452,7 +452,7 @@
           throw new RuntimeException("Cannot create collection of type: " + type);
       }
       
  -    private Collection unmodifiableCollection(Collection collection) {
  +    protected Collection unmodifiableCollection(Collection collection) {
           if (collection instanceof List) {
               return Collections.unmodifiableList((List) collection);
           }
  @@ -464,7 +464,7 @@
           return collection;
       }
       
  -    static class ValueNodeSet implements NodeSet {
  +    static final class ValueNodeSet implements NodeSet {
           private List values;
           private List pointers;
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org