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 253833 - [81cat] Java hint: AssignUnusedConstructorParameterToField has a different name
Summary: [81cat] Java hint: AssignUnusedConstructorParameterToField has a different name
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-27 07:19 UTC by cezariusz
Modified: 2015-08-12 13:28 UTC (History)
1 user (show)

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 cezariusz 2015-07-27 07:19:43 UTC
Link: http://services.netbeans.org/synergy/client/app/#/case/4989/suite/1691

Product Version: NetBeans IDE Dev (Build 201507240001)
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Windows 8 version 6.2 running on amd64; UTF-8; pl_PL (nb)

public class AssignUnusedConstructorParameterToField {

    public AssignUnusedConstructorParameterToField(int unused) // HINT: Assign unused constructor parameter to field
    {
        
    }
}

EXPECTED: Assign unused constructor parameter to field
ACTUAL: Create Field 'unused'

However it does what is expected.
Comment 1 Vladimir Riha 2015-07-28 13:46:55 UTC
It works for me


Product Version: NetBeans IDE 8.1 Beta (Build 201507231027)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Linux version 3.16.0-30-generic running on amd64; UTF-8; en_US (nb)
Comment 2 Jiri Prox 2015-08-12 13:28:08 UTC
I've updated the sample file, the text in comment should match the text provided in popup window (does not matter the hint name is different)