Use pattern-matching instanceof

This commit is contained in:
Grishka
2022-04-19 07:32:33 +03:00
parent 94b6189f36
commit b57df8e175
21 changed files with 64 additions and 89 deletions

View File

@@ -32,7 +32,7 @@ public class Instance extends BaseModel{
/**
* A shorter description defined by the admin.
*/
@RequiredField
// @RequiredField
public String shortDescription;
/**
* An email that may be contacted for any inquiries.
@@ -89,6 +89,8 @@ public class Instance extends BaseModel{
contactAccount.postprocess();
if(rules==null)
rules=Collections.emptyList();
if(shortDescription==null)
shortDescription="";
}
@Override