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 271212 - "Assign return value" and "Split declarations" hints work incorrect whith "SneakyThrows" annotation
Summary: "Assign return value" and "Split declarations" hints work incorrect whith "Sn...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-01 09:37 UTC by Artyom
Modified: 2017-08-01 09: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 Artyom 2017-08-01 09:37:22 UTC
If a method has "SneakyThrows" annotation then "Assign return value" and "Split declarations" hints have incorrect behavior.

1. "Assign return value" hint:

- BEFORE

  new String();

- AFTER

  n	String string = new String();

2. "Split declarations" hint:

- BEFORE

  String string = new String();

- AFTER

  String s    String string;
  string = new String();