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.
Product Version = NetBeans IDE 8.0.1 (Build 201408251540) Operating System = Linux version 3.13.0-36-generic running on amd64 Java; VM; Vendor = 1.7.0_67 Runtime = Java HotSpot(TM) 64-Bit Server VM 24.65-b04 See screen shots coming shortly. Refactoring to introduce a local variable in and "if" block inside of a "case" block in a "switch" does not properly indent the new line.
Created attachment 149515 [details] Before refactoring
Created attachment 149516 [details] After refactoring
Reproduced on code fragment: public class Format { public void t(String code, Long l_amount) { switch (code) { case "sayDollars": if (l_amount != null) { String l_dollars = new DecimalFormat("0").format(Math.floor(l_amount)); long l_cents = Math.round((l_amount - Math.floor(l_amount)) * 100.0); System.err.println(l_cents); } } } }
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss