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.
It would be great in the formatting settings, to be able to have the option to format short methods (in Java) on one line. Typically, when creating a simple mock of an interface, you end up with something like: ToMock tm = new ToMock() { @Override public boolean m() { return true; } } When I would like to get this result: ToMock tm = new ToMock() { @Override public boolean m() { return true; } }
This would also be useful to write compact getters/setters: class Pojo { Object o; public void setO(Object o) { this.o = o; } public Object getO() { return this.o; } }
Will this request be considered for inclusion? Many thanks