
Property: Make sure check() returns nonnull list
@c79fb9784f2e630817de2fc1ce59a3a66a10a0f0
--- app/models/Property.java
+++ app/models/Property.java
... | ... | @@ -24,6 +24,7 @@ |
24 | 24 |
import play.db.ebean.Model; |
25 | 25 |
import utils.Diagnostic; |
26 | 26 |
|
27 |
+import javax.annotation.Nonnull; |
|
27 | 28 |
import javax.persistence.Entity; |
28 | 29 |
import javax.persistence.EnumType; |
29 | 30 |
import javax.persistence.Enumerated; |
... | ... | @@ -91,7 +92,7 @@ |
91 | 92 |
public static void onStart() { |
92 | 93 |
Diagnostic.register(new Diagnostic() { |
93 | 94 |
@Override |
94 |
- public List<String> check() { |
|
95 |
+ public @Nonnull List<String> check() { |
|
95 | 96 |
List<String> errors = new ArrayList<>(); |
96 | 97 |
|
97 | 98 |
for (Property.Name name : Property.Name.values()) { |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?