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.
Summary: | Hint interaction: ConvertAnonymousToMember produces warning about public constructor | ||
---|---|---|---|
Product: | java | Reporter: | cezariusz <cezariusz> |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 8 x64 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 253817 |
Description
cezariusz
2015-07-27 07:41:53 UTC
the public constructor in non-public class is a 'code style' hint; it's off by default and whether it is on or not depends on the coding conventions the team adheres to. The solution would be to check whether this hint is enabled and generate modifiers automatically, but potentially there can be many such hints checking the exact coding style - so the best approach would be probably to allow the code to undergo a SERIES of automatic transformation; the user should control which transformations are enabled or not. making enhancement, as an example of hint interaction which should be solved. |