Skip to content

Commit 9f87b78

Browse files
baevstefanbirkner
authored andcommitted
remove redundant interface modifiers
1 parent 2adef6f commit 9f87b78

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

src/main/java/org/junit/experimental/categories/Categories.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ public class Categories extends Suite {
8686
* Determines the tests to run that are annotated with categories specified in
8787
* the value of this annotation or their subtypes unless excluded with {@link ExcludeCategory}.
8888
*/
89-
public Class<?>[] value() default {};
89+
Class<?>[] value() default {};
9090

9191
/**
9292
* If <tt>true</tt>, runs tests annotated with <em>any</em> of the categories in
9393
* {@link IncludeCategory#value()}. Otherwise, runs tests only if annotated with <em>all</em> of the categories.
9494
*/
95-
public boolean matchAny() default true;
95+
boolean matchAny() default true;
9696
}
9797

9898
@Retention(RetentionPolicy.RUNTIME)
@@ -101,13 +101,13 @@ public class Categories extends Suite {
101101
* Determines the tests which do not run if they are annotated with categories specified in the
102102
* value of this annotation or their subtypes regardless of being included in {@link IncludeCategory#value()}.
103103
*/
104-
public Class<?>[] value() default {};
104+
Class<?>[] value() default {};
105105

106106
/**
107107
* If <tt>true</tt>, the tests annotated with <em>any</em> of the categories in {@link ExcludeCategory#value()}
108108
* do not run. Otherwise, the tests do not run if and only if annotated with <em>all</em> categories.
109109
*/
110-
public boolean matchAny() default true;
110+
boolean matchAny() default true;
111111
}
112112

113113
public static class CategoryFilter extends Filter {

src/main/java/org/junit/runner/Describable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ public interface Describable {
1010
/**
1111
* @return a {@link Description} showing the tests to be run by the receiver
1212
*/
13-
public abstract Description getDescription();
13+
Description getDescription();
1414
}

src/main/java/org/junit/runner/FilterFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public interface FilterFactory {
1717
* Exception thrown if the {@link Filter} cannot be created.
1818
*/
1919
@SuppressWarnings("serial")
20-
public static class FilterNotCreatedException extends Exception {
20+
class FilterNotCreatedException extends Exception {
2121
public FilterNotCreatedException(Exception exception) {
2222
super(exception.getMessage(), exception);
2323
}

src/main/java/org/junit/runner/manipulation/Sortable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ public interface Sortable {
1515
*
1616
* @param sorter the {@link Sorter} to use for sorting the tests
1717
*/
18-
public void sort(Sorter sorter);
18+
void sort(Sorter sorter);
1919

2020
}

src/main/java/org/junit/runners/Parameterized.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public class Parameterized extends Suite {
174174
*/
175175
@Retention(RetentionPolicy.RUNTIME)
176176
@Target(ElementType.METHOD)
177-
public static @interface Parameters {
177+
public @interface Parameters {
178178
/**
179179
* Optional pattern to derive the test's name from the parameters. Use
180180
* numbers in braces to refer to the parameters or the additional data
@@ -205,7 +205,7 @@ public class Parameterized extends Suite {
205205
*/
206206
@Retention(RetentionPolicy.RUNTIME)
207207
@Target(ElementType.FIELD)
208-
public static @interface Parameter {
208+
public @interface Parameter {
209209
/**
210210
* Method that returns the index of the parameter in the array
211211
* returned by the method annotated by <code>Parameters</code>.

src/main/java/org/junit/runners/Suite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static Runner emptySuite() {
4747
/**
4848
* @return the classes to be run
4949
*/
50-
public Class<?>[] value();
50+
Class<?>[] value();
5151
}
5252

5353
private static Class<?>[] getAnnotatedClasses(Class<?> klass) throws InitializationError {

src/main/java/org/junit/validator/TestClassValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ public interface TestClassValidator {
1717
* the {@link TestClass} that is validated.
1818
* @return the validation errors found by the validator.
1919
*/
20-
public List<Exception> validateTestClass(TestClass testClass);
20+
List<Exception> validateTestClass(TestClass testClass);
2121
}

0 commit comments

Comments
 (0)