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.

Bug 255403 - Constant Naming Conventions should ignore serialVersionUID
Summary: Constant Naming Conventions should ignore serialVersionUID
Status: RESOLVED DUPLICATE of bug 252990
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-18 15:01 UTC by josephcz
Modified: 2015-09-21 14:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description josephcz 2015-09-18 15:01:36 UTC
The default settings for Constant Naming Conventions in NetBenas 8.1 Beta show a warning for a properly-defined serialVersionUID. There should be an option for the hint to specifically ignore "serialVersionUID", and that option should be set by default.

There should also be a @SuppressWarnings option that allows this warning to be suppressed on a case-by-case (or class-by-class) basis. A good example of where this would be used: constants that represent units multipliers and have a prescribed representation in an international standard, such as:

/** IEC symbol/multiplier for 1 kibibyte (1024 bytes). */
@SuppressWarnings("ConstantNamingConventions")
public static final int KiB = 1024;
Comment 1 Jiri Prox 2015-09-18 16:02:34 UTC
What build do you use? This should be fixed by issue 252990
Comment 2 Svata Dedic 2015-09-21 14:37:20 UTC

*** This bug has been marked as a duplicate of bug 252990 ***