blob: 4d80d5b3f8d1e45482a5804b773f2c77638de180 [file] [log] [blame] [view]
A Refaster template consists of multiple methods. Typically, each method in the
class has an annotation. If a method has no annotation, this is likely an
oversight.
```java
static final class MethodLacksBeforeTemplateAnnotation {
@BeforeTemplate
boolean before1(String string) {
return string.equals("");
}
// @BeforeTemplate is missing
boolean before2(String string) {
return string.length() == 0;
}
@AfterTemplate
@AlsoNegation
boolean after(String string) {
return string.isEmpty();
}
}
```