Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 97763 invoked from network); 26 Jun 2003 02:17:34 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 26 Jun 2003 02:17:34 -0000 Received: (qmail 6770 invoked by uid 97); 26 Jun 2003 02:20:04 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 6763 invoked from network); 26 Jun 2003 02:20:04 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 26 Jun 2003 02:20:04 -0000 Received: (qmail 97516 invoked by uid 500); 26 Jun 2003 02:17:31 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 97497 invoked by uid 500); 26 Jun 2003 02:17:31 -0000 Received: (qmail 97490 invoked from network); 26 Jun 2003 02:17:31 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 26 Jun 2003 02:17:31 -0000 Received: (qmail 65123 invoked by uid 1328); 26 Jun 2003 02:17:30 -0000 Date: 26 Jun 2003 02:17:30 -0000 Message-ID: <20030626021730.65122.qmail@icarus.apache.org> From: dmitri@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/util BasicTypeConverter.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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