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