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.
When formatting decides to wrap a line as defined in "Options > JavaCode > Formatting > Wrapping" I would like the operator to always appear at the beginning of the line. I like to look at the start of the line and know what it is about. So for example, there would be while(this.number < 2 && number != 3) this.number++; assert a < b || p == null : "message"; method1() .method2() .method3(); (BTW, thanks and appreciatioin for the new formatting)
I forgot one of them that bugs me the most. "this is a" + "string that" + "spans many" + "lines" So when I'm in the middle of a String and enter a <RETURN> I'd like the "+" to be on the beginning of the next line, not at the end of the previous line.
This enhancement has mostly been implemented by additions to Options>Editor>formatting>java>wrapping such as "wrap after . in ..." and "wrap after binary ..." I had envisioned a global such as "wrap after operator", but this works OK. The "wrap after binary operator" does not affect the formatting of the "disjunctive catch types". Shouldn't it? Should there be a separate checkbox for that option?
Dusan, Would it be better if I closed this and filed a separate issue about the "disjunctive catch types"?
Hi guys, we r facing the same issue for making sure that logical operators in disjunctive catch types always appear in new line. So the required format is like so try { //some code } catch (ParseErrorException | MethodInvocationException | ResourceNotFoundException exception) { //some code }
This is a common use case now while implementing google PMD checkstyle rules in a java project