| 39 | } |
| 40 | |
| 41 | @Value |
| 42 | class Author { |
| 43 | |
| 44 | @NonNull String name; |
| 45 | |
| 46 | Author(String name) { |
| 47 | if (name.isEmpty()) { |
| 48 | throw new IllegalArgumentException("Author cannot be empty"); |
| 49 | } |
| 50 | this.name = name.trim(); |
| 51 | } |
| 52 | } |
nothing calls this directly
no outgoing calls
no test coverage detected