New posts
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import com.ankurm.builder.GenerateBuilder;
|
||||
|
||||
// Deliberately wrong: @GenerateBuilder is only meaningful on a class or a record.
|
||||
@GenerateBuilder
|
||||
public interface Shape {
|
||||
double area();
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import com.ankurm.demo.annotations.NotBlank;
|
||||
|
||||
// Deliberately wrong: @NotBlank is declared @Target(ElementType.FIELD), so it cannot sit on a class.
|
||||
@NotBlank
|
||||
public class WrongTarget {
|
||||
}
|
||||
Reference in New Issue
Block a user