reducing the number of methods annotated with @TrackableConstant

Vicente Romero vicente.romero at oracle.com
Fri Aug 25 03:13:03 UTC 2017


Hi,

I propose reducing the number of methods annotated with the 
@TrackableConstant annotation in the current Constables API. Actually 
reducing the number of them should be a consequence of reducing the 
applicability of the annotation. Annotating methods that return 
primitive types or Strings adds more overhead to the compiler but, IMO, 
it adds little value to the API and developers. My suggestion is that if 
a method returns a Constable type, or at most an array of a Constable 
type, then it could be annotated with @TrackableConstant and remove it 
from all other cases.

Comments?
Vicente


More information about the amber-dev mailing list