Skip to content

Commit

Permalink
Delete unnecessary semicolons
Browse files Browse the repository at this point in the history
These semicolons are the source of distracting warnings in the IDE.
  • Loading branch information
stefanbirkner committed Feb 8, 2018
1 parent 039a24e commit 41c8f3e
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 33 deletions.
4 changes: 2 additions & 2 deletions doc/ReleaseNotes4.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ public static class UsesExternalResource {
@Override
protected void before() throws Throwable {
myServer.connect();
};
}

@Override
protected void after() {
myServer.disconnect();
};
}
};

@Test public void testFoo() {
Expand Down
4 changes: 2 additions & 2 deletions doc/ReleaseNotes4.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public class UsesExternalResource {
@Override
protected void before() throws Throwable {
myServer.connect();
};
}

@Override
protected void after() {
myServer.disconnect();
};
}
};
}
```
Expand Down
4 changes: 0 additions & 4 deletions src/test/java/org/junit/rules/ClassRulesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ public void evaluate() throws Throwable {
}
}

;

public static class UsesFieldAndMethodRule {
@ClassRule
public static OrderTestRule orderMethod() {
Expand Down Expand Up @@ -227,8 +225,6 @@ public Statement apply(final Statement base, Description description) {
public void evaluate() throws Throwable {
base.evaluate();
}

;
};
}
}
Expand Down
4 changes: 0 additions & 4 deletions src/test/java/org/junit/rules/ExternalResourceRuleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,10 @@ protected void before() throws Throwable {
callSequence += "before ";
}

;

@Override
protected void after() {
callSequence += "after ";
}

;
};

@Test
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/junit/rules/MethodRulesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ public void evaluate() throws Throwable {
}
};
}
};
}


@Rule
Expand Down
10 changes: 0 additions & 10 deletions src/test/java/org/junit/rules/TestRuleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ public void evaluate() throws Throwable {
wasRun = true;
base.evaluate();
}

;
};
}
};
Expand Down Expand Up @@ -110,8 +108,6 @@ public void evaluate() throws Throwable {
runCount++;
base.evaluate();
}

;
};
}
}
Expand Down Expand Up @@ -318,8 +314,6 @@ public void evaluate() throws Throwable {
wasRun = true;
base.evaluate();
}

;
};
}
};
Expand Down Expand Up @@ -397,8 +391,6 @@ public void evaluate() throws Throwable {
runCount++;
base.evaluate();
}

;
};
}
}
Expand Down Expand Up @@ -703,8 +695,6 @@ public Statement apply(final Statement base, Description description) {
public void evaluate() throws Throwable {
base.evaluate();
}

;
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void addFirstAndRemoveWithThreadSafeListener() {

@Test
public void wrapIfNotThreadSafeShouldNotWrapThreadSafeListeners() {
ThreadSafeListener listener = new ThreadSafeListener();;
ThreadSafeListener listener = new ThreadSafeListener();
assertSame(listener, new RunNotifier().wrapIfNotThreadSafe(listener));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

public class WithAutoGeneratedDataPoints {

private enum ENUM { VALUE, OTHER_VALUE, THIRD_VALUE };
private enum ENUM { VALUE, OTHER_VALUE, THIRD_VALUE }

@RunWith(Theories.class)
public static class TheoryTestClassWithAutogeneratedParameterValues {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ public static String[] STRINGS() {
return new String[]{"A", "B"};
}

;

@Theory
public void addToLog(String string) {
log += string;
Expand All @@ -137,8 +135,6 @@ public static String[] STRINGS() {
return new String[]{"A", "B"};
}

;

@DataPoints
public static String STRING() {
return "C";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public void someTest() {
}
}

;

@RunWith(JUnit4ClassRunner.class)
public static class BadBeforeMethodWithLegacyRunner {
@Before
Expand All @@ -42,8 +40,6 @@ public void someTest() {
}
}

;

public static class NoTests {
// class without tests
}
Expand Down

0 comments on commit 41c8f3e

Please sign in to comment.