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 203198 - [71cat] missleading "not used" hint
Summary: [71cat] missleading "not used" hint
Status: RESOLVED DUPLICATE of bug 176240
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 08:36 UTC by muellermi
Modified: 2011-11-16 16:39 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 muellermi 2011-10-06 08:36:12 UTC
Product Version = NetBeans IDE Dev (Build 201110040601)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) Client VM 21.0-b17

- create an entity class
- create a method
    private void doNothingl() {
    }
--> NB shows "Method doNothing() is not used"

- add a @PrePersist annotation
    @PrePersist
    private void doNothingl() {
    }
--> NB still shows  "Method doNothing() is not used" even though the method now is used before persisting
Comment 1 muellermi 2011-10-06 08:37:25 UTC
I guess, same missleading hint will appear for other lifecyle annotations
Comment 2 Jan Lahoda 2011-10-10 17:50:35 UTC

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