@Override public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i) { // TODO Auto-generated method stub VelPropertySet method = super.getPropertySet(obj, identifier, arg, i); if (method != null) { Method m = this.introspector.getMethod(obj.getClass(), method.getMethodName(), new Object[] { arg }); if (m != null && (m.isAnnotationPresent(Deprecated.class) || m.getDeclaringClass().isAnnotationPresent(Deprecated.class) || obj.getClass().isAnnotationPresent(Deprecated.class))) { logWarning("setter", obj, method.getMethodName(), i); } } return method; }
return false; vs.invoke(result, value);
vs.invoke(result, value);
vs.invoke(result, value);
@Override public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i) throws Exception { // TODO Auto-generated method stub VelPropertySet method = super.getPropertySet(obj, identifier, arg, i); if (method != null) { Method m = this.introspector.getMethod(obj.getClass(), method.getMethodName(), new Object[] { arg }); if (m != null && (m.isAnnotationPresent(Deprecated.class) || m.getDeclaringClass().isAnnotationPresent(Deprecated.class) || obj.getClass().isAnnotationPresent(Deprecated.class))) { logWarning("setter", obj, method.getMethodName(), i); } } return method; }
vs.invoke(result, value);
/** * {@inheritDoc} * * @see Uberspect#getPropertySet(java.lang.Object, java.lang.String, java.lang.Object, * org.apache.velocity.util.introspection.Info) */ @Override public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i) throws Exception { // TODO Auto-generated method stub VelPropertySet method = super.getPropertySet(obj, identifier, arg, i); if (method != null) { Method m = introspector.getMethod(obj.getClass(), method.getMethodName(), new Object[] {arg}); if (m != null && m.isAnnotationPresent(Deprecated.class)) { logWarning("setter", obj, method.getMethodName(), i); } } return method; }