Invert 'if': sentence capitalization

This commit is contained in:
Dmitry Avdeev
2014-12-06 10:57:22 +03:00
parent b8b1833550
commit d304ec4ede
66 changed files with 71 additions and 71 deletions

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (!c) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if ((!c)) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (c != d) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (c == d) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (c) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
void foo () {
int a = 0, b = 0;

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
void foo() {
String[] entries = null;

View File

@@ -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++) {

View File

@@ -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++) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class Test {
public static int create() {
if (true) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
if (<caret>!c) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (!c) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (!c) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (!c) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo(boolean c) {
<caret>if (c) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
public class C {
public static int main(String[] args) {
if (!a) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
for (int i = 0;;i++) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public static void foo() {
if (1 == 2) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public static void foo() {
<caret>if (1 + 2 != 3) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class K {
private void bar(int i) {
switch(i) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class Foo {
void foo(String[] args) {
for (String s : args) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
Runnable r = () -> {

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (!c) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (!c) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
// else on the same line
class TestInvertIf {
void invertIf(Object object) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
while (true) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
while (true) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (c) a(); else b();

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if ((c)) a(); else b();

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (c == d) a(); else b();

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (c != d) a(); else b();

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (!c) a(); else b();

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
void foo () {
int a = 0, b = 0;

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
void foo() {
String[] entries = null;

View File

@@ -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++) {

View File

@@ -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++) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class Test {
public static int create() {
if (!tr<caret>ue) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
if (<caret>c) a();

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (c) {}

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (c) a();

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (c) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo(boolean c) {
<caret>if (!c) return;

View File

@@ -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;

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
for (int i = 0;;i++) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public static void foo() {
<caret>if (1 != 2) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public static void foo() {
<caret>if (1 + 2 == 3) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class K {
private void bar(int i) {
switch(i) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class Foo {
void foo(String[] args) {
for (String s : args) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
Runnable r = () -> {

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (c) a();

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (c) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
// else on the same line
class TestInvertIf {
void invertIf(Object object) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
while (true) {

View File

@@ -1,4 +1,4 @@
// "Invert If Condition" "true"
// "Invert 'if' condition" "true"
class A {
public void foo() {
while (true) {

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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