diff --git a/src/com/idcanet/vasc/annotations/VascAnnotationParser.java b/src/com/idcanet/vasc/annotations/VascAnnotationParser.java index 97c9536..b97b563 100644 --- a/src/com/idcanet/vasc/annotations/VascAnnotationParser.java +++ b/src/com/idcanet/vasc/annotations/VascAnnotationParser.java @@ -28,8 +28,6 @@ package com.idcanet.vasc.annotations; import java.lang.annotation.Annotation; import java.lang.reflect.Method; -import java.util.logging.Level; -import java.util.logging.Logger; /** * 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 */ private Boolean noAnnotationNullReturn = null; - private Logger logger = null; - /** * Creates an VascAnnotationParser */ public VascAnnotationParser() { setNoAnnotationNullReturn(false); - logger = Logger.getLogger(VascAnnotationParser.class.getName()); } /** @@ -166,7 +161,6 @@ public class VascAnnotationParser { if(index>0) { propRest = property.substring(index+1); property = property.substring(0,index); - logger.finest("slit property into: '"+propRest+"' and '"+property+"'"); } for(Method method:beanClass.getMethods()) { @@ -237,8 +231,7 @@ public class VascAnnotationParser { try { return v.defaultValueClass().newInstance(); } catch (Exception e) { - logger.log(Level.WARNING,e.getMessage(),e); - throw new NullPointerException("Could not init defaultValueClass"); + throw new NullPointerException("Could not init defaultValueClass error: "+e.getMessage()); } } if ("null".equals(v.defaultValue())) {