[svn r292] removed log line
This commit is contained in:
parent
fdd0af9597
commit
1e74f3c039
|
@ -28,8 +28,6 @@ package com.idcanet.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.Annotation;
|
import java.lang.annotation.Annotation;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses the Vasc annotations
|
* Parses the Vasc annotations
|
||||||
|
@ -42,14 +40,11 @@ public class VascAnnotationParser {
|
||||||
/** Determens if no when no annotation is found null will return or default key */
|
/** Determens if no when no annotation is found null will return or default key */
|
||||||
private Boolean noAnnotationNullReturn = null;
|
private Boolean noAnnotationNullReturn = null;
|
||||||
|
|
||||||
private Logger logger = null;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an VascAnnotationParser
|
* Creates an VascAnnotationParser
|
||||||
*/
|
*/
|
||||||
public VascAnnotationParser() {
|
public VascAnnotationParser() {
|
||||||
setNoAnnotationNullReturn(false);
|
setNoAnnotationNullReturn(false);
|
||||||
logger = Logger.getLogger(VascAnnotationParser.class.getName());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -166,7 +161,6 @@ public class VascAnnotationParser {
|
||||||
if(index>0) {
|
if(index>0) {
|
||||||
propRest = property.substring(index+1);
|
propRest = property.substring(index+1);
|
||||||
property = property.substring(0,index);
|
property = property.substring(0,index);
|
||||||
logger.finest("slit property into: '"+propRest+"' and '"+property+"'");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for(Method method:beanClass.getMethods()) {
|
for(Method method:beanClass.getMethods()) {
|
||||||
|
@ -237,8 +231,7 @@ public class VascAnnotationParser {
|
||||||
try {
|
try {
|
||||||
return v.defaultValueClass().newInstance();
|
return v.defaultValueClass().newInstance();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.log(Level.WARNING,e.getMessage(),e);
|
throw new NullPointerException("Could not init defaultValueClass error: "+e.getMessage());
|
||||||
throw new NullPointerException("Could not init defaultValueClass");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ("null".equals(v.defaultValue())) {
|
if ("null".equals(v.defaultValue())) {
|
||||||
|
|
Loading…
Reference in a new issue