svn commit: r618197 - /lenya/trunk/src/modules/collection/java/src/org/apache/lenya/modules/collection/CollectionWrapper.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Mon Feb  4 00:23:13 2008
New Revision: 618197

URL: http://svn.apache.org/viewvc?rev=618197&view=rev
Log:
Replaced Boolean.parseBoolean() with valueOf() to stay compatible with Java 1.4

Modified:
    lenya/trunk/src/modules/collection/java/src/org/apache/lenya/modules/collection/CollectionWrapper.java

Modified: lenya/trunk/src/modules/collection/java/src/org/apache/lenya/modules/collection/CollectionWrapper.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/collection/java/src/org/apache/lenya/modules/collection/CollectionWrapper.java?rev=618197&r1=618196&r2=618197&view=diff
==============================================================================
--- lenya/trunk/src/modules/collection/java/src/org/apache/lenya/modules/collection/CollectionWrapper.java (original)
+++ lenya/trunk/src/modules/collection/java/src/org/apache/lenya/modules/collection/CollectionWrapper.java Mon Feb  4 00:23:13 2008
@@ -155,7 +155,7 @@
             
             if (collectionElement.hasAttribute(ATTRIBUTE_ALL_LANGUAGES)) {
                 String value = collectionElement.getAttribute(ATTRIBUTE_ALL_LANGUAGES);
-                this.allLanguages = Boolean.parseBoolean(value);
+                this.allLanguages = Boolean.valueOf(value).booleanValue();
             }
         } catch (RuntimeException e) {
             throw e;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.