Skip to content

Commit

Permalink
Delete obsolete @SuppressWarnings("unused") declarations
Browse files Browse the repository at this point in the history
Issue: #1252
  • Loading branch information
sbrannen committed Jan 19, 2018
1 parent df784ed commit 7f6b2cd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,6 @@ void afterAll(TestInfo testInfo) {
}

static class SubInstancePerClassTestCase extends InstancePerClassTestCase {
@SuppressWarnings("unused")
SubInstancePerClassTestCase() {
incrementInstanceCount(SubInstancePerClassTestCase.class);
}
Expand All @@ -678,7 +677,6 @@ static class SubInstancePerClassTestCase extends InstancePerClassTestCase {
// @TestInstance(Lifecycle.PER_METHOD)
static class InstancePerMethodOuterTestCase {

@SuppressWarnings("unused")
InstancePerMethodOuterTestCase() {
incrementInstanceCount(InstancePerMethodOuterTestCase.class);
}
Expand All @@ -705,7 +703,6 @@ static void afterAll(TestInfo testInfo) {
// @TestInstance(Lifecycle.PER_METHOD)
class NestedInstancePerMethodTestCase {

@SuppressWarnings("unused")
NestedInstancePerMethodTestCase() {
incrementInstanceCount(NestedInstancePerMethodTestCase.class);
}
Expand Down Expand Up @@ -744,7 +741,6 @@ void afterEach() {
@TestInstance(Lifecycle.PER_CLASS)
static class InstancePerClassOuterTestCase {

@SuppressWarnings("unused")
InstancePerClassOuterTestCase() {
incrementInstanceCount(InstancePerClassOuterTestCase.class);
}
Expand All @@ -770,7 +766,6 @@ static void afterAll(TestInfo testInfo) {
@TestInstance(Lifecycle.PER_CLASS)
class NestedInstancePerClassTestCase {

@SuppressWarnings("unused")
NestedInstancePerClassTestCase() {
incrementInstanceCount(NestedInstancePerClassTestCase.class);
}
Expand Down Expand Up @@ -822,7 +817,6 @@ void afterAll(TestInfo testInfo) {
// @TestInstance(Lifecycle.PER_METHOD)
static class MixedLifecyclesOuterTestCase {

@SuppressWarnings("unused")
MixedLifecyclesOuterTestCase() {
incrementInstanceCount(MixedLifecyclesOuterTestCase.class);
}
Expand All @@ -846,7 +840,6 @@ void afterEach() {
@TestInstance(Lifecycle.PER_CLASS)
class NestedInstancePerClassTestCase {

@SuppressWarnings("unused")
NestedInstancePerClassTestCase() {
incrementInstanceCount(NestedInstancePerClassTestCase.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ static class ConstructorInjectionTestCase {
private final TestInfo outerTestInfo;
private final CustomType outerCustomType;

@SuppressWarnings("unused")
ConstructorInjectionTestCase(TestInfo testInfo, CustomType customType) {
this.outerTestInfo = testInfo;
this.outerCustomType = customType;
Expand All @@ -239,7 +238,6 @@ class NestedTestCase {
private final TestInfo innerTestInfo;
private final CustomType innerCustomType;

@SuppressWarnings("unused")
NestedTestCase(TestInfo testInfo, CustomType customType) {
this.innerTestInfo = testInfo;
this.innerCustomType = customType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public void test2() {

static class ClassWithNestedTestClass {

@SuppressWarnings("unused")
void method() {
}

Expand Down

0 comments on commit 7f6b2cd

Please sign in to comment.