jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r122847 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/NodeTypeDefStore.java
Date Mon, 20 Dec 2004 12:05:22 GMT
Author: stefan
Date: Mon Dec 20 04:05:19 2004
New Revision: 122847

URL: http://svn.apache.org/viewcvs?view=rev&rev=122847
Log:
fixed http://nagoya.apache.org/jira/browse/JCR-34:
autoCreate attribute of PropDef instances not serialized
Modified:
   incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/NodeTypeDefStore.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/NodeTypeDefStore.java
Url: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/NodeTypeDefStore.java?view=diff&rev=122847&p1=incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/NodeTypeDefStore.java&r1=122846&p2=incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/NodeTypeDefStore.java&r2=122847
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/NodeTypeDefStore.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/nodetype/NodeTypeDefStore.java
Mon Dec 20 04:05:19 2004
@@ -554,10 +554,7 @@
                     }
                 }
                 // autoCreate
-                String autoCreate = elem.getAttributeValue(AUTOCREATE_ATTRIBUTE);
-                if (autoCreate != null && autoCreate.length() > 0) {
-                    pd.setAutoCreate(Boolean.valueOf(autoCreate).booleanValue());
-                }
+		elem.setAttribute(AUTOCREATE_ATTRIBUTE, Boolean.toString(pd.isAutoCreate()));
                 // mandatory
                 elem.setAttribute(MANDATORY_ATTRIBUTE, Boolean.toString(pd.isMandatory()));
                 // onParentVersion

Mime
View raw message