Yi EungJun 2015-02-10
Property: Make sure check() returns nonnull list
@c79fb9784f2e630817de2fc1ce59a3a66a10a0f0
app/models/Property.java
--- app/models/Property.java
+++ app/models/Property.java
@@ -24,6 +24,7 @@
 import play.db.ebean.Model;
 import utils.Diagnostic;
 
+import javax.annotation.Nonnull;
 import javax.persistence.Entity;
 import javax.persistence.EnumType;
 import javax.persistence.Enumerated;
@@ -91,7 +92,7 @@
     public static void onStart() {
         Diagnostic.register(new Diagnostic() {
             @Override
-            public List<String> check() {
+            public @Nonnull List<String> check() {
                 List<String> errors = new ArrayList<>();
 
                 for (Property.Name name : Property.Name.values()) {
Add a comment
List