]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/BeanNodeMapper.java
Introduce minimal Jackrabbit
[lgpl/argeo-commons.git] / server / runtime / org.argeo.server.jcr / src / main / java / org / argeo / jcr / BeanNodeMapper.java
index d83ec73cabb1a4620d4648ddfcfe518addfbc055..63406999634b778bba41656317bd4bcda13792ba 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.argeo.jcr;
 
 import java.beans.PropertyDescriptor;
@@ -173,7 +189,7 @@ public class BeanNodeMapper implements NodeMapper {
 
                                PropertyDescriptor pd = beanWrapper.getPropertyDescriptor(prop
                                                .getName());
-                               Class propClass = pd.getPropertyType();
+                               Class<?> propClass = pd.getPropertyType();
 
                                if (log.isTraceEnabled())
                                        log.trace("Load " + prop + ", propClass=" + propClass
@@ -206,7 +222,7 @@ public class BeanNodeMapper implements NodeMapper {
                                        continue nodes;
 
                                PropertyDescriptor pd = beanWrapper.getPropertyDescriptor(name);
-                               Class propClass = pd.getPropertyType();
+                               Class<?> propClass = pd.getPropertyType();
 
                                // objects list
                                if (propClass != null && List.class.isAssignableFrom(propClass)) {
@@ -268,7 +284,7 @@ public class BeanNodeMapper implements NodeMapper {
                                                if (classProperty.equals(key))
                                                        continue keyProps;
 
-                                               Class keyPropClass = classFromProperty(keyProp);
+                                               Class<?> keyPropClass = classFromProperty(keyProp);
                                                if (keyPropClass != null) {
                                                        Object mapValue = asObject(keyProp.getValue(),
                                                                        keyPropClass);