mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
Invert 'if': sentence capitalization
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (!c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if ((!c)) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (c != d) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (c == d) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
void foo () {
|
||||
int a = 0, b = 0;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
void foo() {
|
||||
String[] entries = null;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class B {
|
||||
public static void foo() {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class B {
|
||||
public static void foo() {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class Test {
|
||||
public static int create() {
|
||||
if (true) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
if (<caret>!c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (!c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (!c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (!c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo(boolean c) {
|
||||
<caret>if (c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
public class C {
|
||||
public static int main(String[] args) {
|
||||
if (!a) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
for (int i = 0;;i++) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public static void foo() {
|
||||
if (1 == 2) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public static void foo() {
|
||||
<caret>if (1 + 2 != 3) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class K {
|
||||
private void bar(int i) {
|
||||
switch(i) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class Foo {
|
||||
void foo(String[] args) {
|
||||
for (String s : args) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
Runnable r = () -> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public boolean foo(boolean a, boolean b, boolean c, boolean d) {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class Inversion {
|
||||
public void context(boolean a, boolean b, boolean c) {
|
||||
if ((!a || !b) && !c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class Inversion {
|
||||
public void context(boolean a, boolean b, boolean c) {
|
||||
if (!a || !b || !c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class Inversion {
|
||||
public void context(boolean a, boolean b, boolean c) {
|
||||
if ((!a && !b) || !c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (!c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (!c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
// else on the same line
|
||||
class TestInvertIf {
|
||||
void invertIf(Object object) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
while (true) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
while (true) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (c) a(); else b();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if ((c)) a(); else b();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (c == d) a(); else b();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (c != d) a(); else b();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (!c) a(); else b();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
void foo () {
|
||||
int a = 0, b = 0;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
void foo() {
|
||||
String[] entries = null;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class B {
|
||||
public static void foo() {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class B {
|
||||
public static void foo() {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class Test {
|
||||
public static int create() {
|
||||
if (!tr<caret>ue) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
if (<caret>c) a();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (c) {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (c) a();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo(boolean c) {
|
||||
<caret>if (!c) return;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
public class C {
|
||||
public static int main(String[] args) {
|
||||
<caret>if (a) return 2;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
for (int i = 0;;i++) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public static void foo() {
|
||||
<caret>if (1 != 2) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public static void foo() {
|
||||
<caret>if (1 + 2 == 3) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class K {
|
||||
private void bar(int i) {
|
||||
switch(i) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class Foo {
|
||||
void foo(String[] args) {
|
||||
for (String s : args) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
Runnable r = () -> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public boolean foo(boolean a, boolean b, boolean c, boolean d) {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class Inversion {
|
||||
public void context(boolean a, boolean b, boolean c) {
|
||||
if (a &<caret>& b || c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class Inversion {
|
||||
public void context(boolean a, boolean b, boolean c) {
|
||||
if (a &<caret>& b && c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class Inversion {
|
||||
public void context(boolean a, boolean b, boolean c) {
|
||||
if ((a |<caret>| b) && c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (c) a();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>if (c) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
// else on the same line
|
||||
class TestInvertIf {
|
||||
void invertIf(Object object) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
while (true) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Invert If Condition" "true"
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
while (true) {
|
||||
|
||||
@@ -206,7 +206,7 @@ intention.implement.abstract.method.error.no.classes.message=There are no classe
|
||||
intention.implement.abstract.method.error.no.classes.title=No Classes Found
|
||||
intention.implement.abstract.method.class.chooser.title=Choose Implementing Class
|
||||
intention.implement.abstract.method.command.name=Implement method
|
||||
intention.invert.if.condition=Invert If Condition
|
||||
intention.invert.if.condition=Invert 'if' condition
|
||||
intention.extract.if.condition.text=Extract if ({0})
|
||||
intention.extract.if.condition.family=Extract If Condition
|
||||
intention.underscores.in.literals.family=Underscores in numeric literals
|
||||
|
||||
@@ -1257,7 +1257,7 @@ cast.that.loses.precision.problem.descriptor=Cast to <code>#ref</code> from ''{0
|
||||
comparison.to.nan.problem.descriptor1=Comparison to <code>#ref</code> is always false #loc
|
||||
comparison.to.nan.problem.descriptor2=Comparison to <code>#ref</code> is always true #loc
|
||||
comparison.to.nan.replace.quickfix=Replace with 'isNaN()'
|
||||
confusing.floating.point.literal.change.quickfix=Change To canonical form
|
||||
confusing.floating.point.literal.change.quickfix=Change to canonical form
|
||||
implicit.numeric.conversion.ignore.widening.conversion.option=Ignore widening conversions
|
||||
implicit.numeric.conversion.ignore.char.conversion.option=Ignore conversions from and to char
|
||||
implicit.numeric.conversion.ignore.constant.conversion.option=Ignore conversions from constants and literals
|
||||
@@ -1319,7 +1319,7 @@ negated.conditional.ignore.option=Ignore '!= null' comparisons
|
||||
negated.conditional.invert.quickfix=Invert condition
|
||||
negated.if.else.ignore.negated.null.option=Ignore '!= null' comparisons
|
||||
negated.if.else.ignore.negated.zero.option=Ignore '!= 0' comparisons
|
||||
negated.if.else.invert.quickfix=Invert If Condition
|
||||
negated.if.else.invert.quickfix=Invert 'if' condition
|
||||
overly.complex.boolean.expression.max.terms.option=Maximum number of terms:
|
||||
pointless.boolean.expression.ignore.option=Ignore named constants in determining pointless expressions
|
||||
simplifiable.conditional.expression.problem.descriptor=<code>#ref</code> can be simplified to ''{0}'' #loc
|
||||
|
||||
@@ -44,8 +44,8 @@ split.else.if.intention.name=Split else-if
|
||||
split.else.if.intention.family.name=Split Else If
|
||||
split.if.intention.name=Split into 2 if's
|
||||
split.if.intention.family.name=Split into 2 if's
|
||||
invert.if.intention.name=Invert If Condition
|
||||
invert.if.intention.family.name=Invert If Condition
|
||||
invert.if.intention.name=Invert 'if' condition
|
||||
invert.if.intention.family.name=Invert 'if' condition
|
||||
replace.ternary.with.if.else.intention.name=Replace ''?:'' with if else
|
||||
replace.ternary.with.if.else.intention.family.name=Replace ''?:'' with if else
|
||||
simplify.ternary.operator.intention.name=Simplify Conditional Expression
|
||||
|
||||
@@ -1255,7 +1255,7 @@ cast.that.loses.precision.problem.descriptor=Cast to <code>#ref</code> from ''{0
|
||||
comparison.to.nan.problem.descriptor1=Comparison to <code>#ref</code> is always false #loc
|
||||
comparison.to.nan.problem.descriptor2=Comparison to <code>#ref</code> is always true #loc
|
||||
comparison.to.nan.replace.quickfix=Replace with 'isNaN()'
|
||||
confusing.floating.point.literal.change.quickfix=Change To canonical form
|
||||
confusing.floating.point.literal.change.quickfix=Change to canonical form
|
||||
implicit.numeric.conversion.ignore.widening.conversion.option=Ignore widening conversions
|
||||
implicit.numeric.conversion.ignore.char.conversion.option=Ignore conversions from and to char
|
||||
implicit.numeric.conversion.ignore.constant.conversion.option=Ignore conversions from constants and literals
|
||||
@@ -1317,7 +1317,7 @@ negated.conditional.ignore.option=Ignore '!= null' comparisons
|
||||
negated.conditional.invert.quickfix=Invert condition
|
||||
negated.if.else.ignore.negated.null.option=Ignore '!= null' comparisons
|
||||
negated.if.else.ignore.negated.zero.option=Ignore '!= 0' comparisons
|
||||
negated.if.else.invert.quickfix=Invert If Condition
|
||||
negated.if.else.invert.quickfix=Invert 'if' condition
|
||||
overly.complex.boolean.expression.max.terms.option=Maximum number of terms:
|
||||
pointless.boolean.expression.ignore.option=Ignore named constants in determining pointless expressions
|
||||
simplifiable.conditional.expression.problem.descriptor=<code>#ref</code> can be simplified to ''{0}'' #loc
|
||||
@@ -16747,7 +16747,7 @@ cast.that.loses.precision.problem.descriptor=Cast to <code>#ref</code> from ''{0
|
||||
comparison.to.nan.problem.descriptor1=Comparison to <code>#ref</code> is always false #loc
|
||||
comparison.to.nan.problem.descriptor2=Comparison to <code>#ref</code> is always true #loc
|
||||
comparison.to.nan.replace.quickfix=Replace with 'isNaN()'
|
||||
confusing.floating.point.literal.change.quickfix=Change To canonical form
|
||||
confusing.floating.point.literal.change.quickfix=Change to canonical form
|
||||
implicit.numeric.conversion.ignore.widening.conversion.option=Ignore widening conversions
|
||||
implicit.numeric.conversion.ignore.char.conversion.option=Ignore conversions from and to char
|
||||
implicit.numeric.conversion.ignore.constant.conversion.option=Ignore conversions from constants and literals
|
||||
@@ -16809,7 +16809,7 @@ negated.conditional.ignore.option=Ignore '!= null' comparisons
|
||||
negated.conditional.invert.quickfix=Invert condition
|
||||
negated.if.else.ignore.negated.null.option=Ignore '!= null' comparisons
|
||||
negated.if.else.ignore.negated.zero.option=Ignore '!= 0' comparisons
|
||||
negated.if.else.invert.quickfix=Invert If Condition
|
||||
negated.if.else.invert.quickfix=Invert 'if' condition
|
||||
overly.complex.boolean.expression.max.terms.option=Maximum number of terms:
|
||||
pointless.boolean.expression.ignore.option=Ignore named constants in determining pointless expressions
|
||||
simplifiable.conditional.expression.problem.descriptor=<code>#ref</code> can be simplified to ''{0}'' #loc
|
||||
|
||||
Reference in New Issue
Block a user