mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SimplifyBooleanExpressionFix: preserve comments during simple replacement
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class SideEffectReturn {
|
||||
private boolean isValidValue(String value) {
|
||||
try {
|
||||
return <warning descr="Condition 'Test.valueOf(value) != null' is always 'true'">Test.valueOf(value) <caret>!= null</warning>;
|
||||
return <warning descr="Condition 'Test.valueOf(value/*oops*/) != null' is always 'true'">Test.valueOf(value/*oops*/<caret>) != null</warning>;
|
||||
} catch (IllegalArgumentException e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class SideEffectReturn {
|
||||
private boolean isValidValue(String value) {
|
||||
try {
|
||||
Test.valueOf(value);
|
||||
Test.valueOf(value/*oops*/);
|
||||
return true;
|
||||
} catch (IllegalArgumentException e) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user