You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "KuiLIU (JIRA)" <se...@james.apache.org> on 2018/04/21 22:10:00 UTC
[jira] [Created] (JAMES-2382) Inconsistent method name
KuiLIU created JAMES-2382:
-----------------------------
Summary: Inconsistent method name
Key: JAMES-2382
URL: https://issues.apache.org/jira/browse/JAMES-2382
Project: James Server
Issue Type: Improvement
Reporter: KuiLIU
The following method is named "hasAnnotatedProperty" that is a query of asking whether the propertyDescriptor has the AnnotatedProperty or not.
Actually, the method returns an AnnotatedProperty found by the propertyDescriptor.
Thus, the method name "findAnnotatedProperty" should be intuitive than "hasAnnotatedProperty".
{code:java}
private A hasAnnotatedProperty(PropertyDescriptor propertyDescriptor) {
Method setter = propertyDescriptor.getWriteMethod();
return setter != null ? AnnotationUtils.getAnnotation(setter, getAnnotation()) : null;
}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org