@Retention(RUNTIME)
@Target(TYPE)
public @interface FixMethodOrder
MethodSorters
Here is an example:
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class MyTest {
}
MethodSorters| Modifier and Type | Optional Element | Description |
|---|---|---|
MethodSorters |
value |
Optionally specify
value to have the methods executed in a particular order |
MethodSorters value
value to have the methods executed in a particular order