This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Under some conditions it is required to use name for constants that do not follow 'standard' naming convention. It would be nice to suppress such hints/warnings locally via @SuppressWarnings annotation, but it seems that NetBeans do not have support for suppressing of that particular warning: From sources - attribute `suppressWarnings` is missing: java.hints\src\org\netbeans\modules\java\hints\suggestions\ConstantNameHint.java @Hint( id = ID, category = "naming", displayName = "#DN_ConstantNameHint", description = "#DESC_ConstantNameHint", customizerProvider=CPImpl.class ) Some list of codes already in use in other environments (e.g. IDEA) can be taken from here https://jazzy.id.au/2008/10/30/list_of_suppresswarnings_arguments.html Constant naming convention - ConstantNamingConvention Also, currently it is really hard to learn which ID of the warning is to be used in particular case. It would be very handy to add display of that ID into Tools -> Options -> Editor -> Hint: Java
This would be useful for annotation processing, because sometimes you want to generate code which definitely won't collide with what the user of the annotation processor has written.