Skip to content

Commit

Permalink
Revert "adding test which have been fixed"
Browse files Browse the repository at this point in the history
This reverts commit 10539af.
  • Loading branch information
lkerford committed Nov 9, 2024
1 parent 10539af commit d3f0d79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1665,10 +1665,10 @@ void test() /*~~(BB: 22 CN: 12 EX: 1 | 1L)~~>*/{
/*~~(3L)~~>*/if ((/*~~(2C)~~>*/potato)) /*~~(4L)~~>*/{
// ...
}
/*~~(5L)~~>*/if (/*~~(3C)~~>*/potato && /*~~(6L)~~>*//*~~(4C)~~>*/turnip) /*~~(7L)~~>*/{
/*~~(5L)~~>*/if (/*~~(3C)~~>*/potato && /*~~(6L)~~>*/turnip) /*~~(7L)~~>*/{
// ...
}
/*~~(8L)~~>*/if (/*~~(5C)~~>*/potato && /*~~(9L)~~>*//*~~(6C)~~>*/turnip || /*~~(10L)~~>*//*~~(7C)~~>*/squash) /*~~(11L)~~>*/{
/*~~(8L)~~>*/if (/*~~(5C)~~>*/potato && /*~~(9L)~~>*/turnip || /*~~(10L)~~>*/squash) /*~~(11L)~~>*/{
// ...
}
int a = /*~~(12L)~~>*/1, b = 2;
Expand Down Expand Up @@ -1925,7 +1925,7 @@ abstract class Test {
abstract boolean otherCondition();
void test() /*~~(BB: 3 CN: 2 EX: 1 | 1L)~~>*/{
while (/*~~(1C)~~>*/condition() && /*~~(2L | 2C)~~>*//*~~(2C)~~>*/otherCondition())/*~~(3L)~~>*/;
while (/*~~(1C)~~>*/condition() && /*~~(2L | 2C)~~>*/otherCondition())/*~~(3L)~~>*/;
}
}
"""
Expand Down Expand Up @@ -1956,7 +1956,7 @@ abstract class Test {
abstract boolean thirdCondition();
void test() /*~~(BB: 4 CN: 3 EX: 1 | 1L)~~>*/{
while (/*~~(1C)~~>*/condition() && /*~~(2L | 2C)~~>*//*~~(2C)~~>*/otherCondition() && /*~~(3L | 3C)~~>*//*~~(3C)~~>*/thirdCondition())/*~~(4L)~~>*/;
while (/*~~(1C)~~>*/condition() && /*~~(2L | 2C)~~>*/otherCondition() && /*~~(3L | 3C)~~>*/thirdCondition())/*~~(4L)~~>*/;
}
}
"""
Expand Down Expand Up @@ -2439,7 +2439,7 @@ void test(boolean condition) {
"""
abstract class Test {
abstract String[] array();
void test(boolean condition) /*~~(BB: 5 CN: 2 EX: 1 | 1L)~~>*/{
for (String s : /*~~(1C)~~>*/condition ? /*~~(2L)~~>*/array() : new /*~~(3L)~~>*/String[] { "Hello!" }) /*~~(4L)~~>*/{
System.out.println(s);
Expand Down Expand Up @@ -2698,7 +2698,7 @@ void switchCaseNoDefault() {
"""
class Test {
enum E { A, B, C }
void test(E x) {
switch (x) {
case A:
Expand All @@ -2718,7 +2718,7 @@ void test(E x) {
"""
class Test {
enum E { A, B, C }
void test(E x) /*~~(BB: 7 CN: 3 EX: 1 | 1L)~~>*/{
switch (x) {
/*~~(1C)~~>*/case A:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ void test() {
@Test
void identifiesGuardsForControlParenthesesWithMissingTypeInformation() {
rewriteRun(
spec -> spec.typeValidationOptions(TypeValidation.none()),
spec -> spec.typeValidationOptions(TypeValidation.builder().identifiers(false).build()),
java(
"""
class Test {
Expand Down

0 comments on commit d3f0d79

Please sign in to comment.