mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +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) {
|
||||
|
||||
Reference in New Issue
Block a user