Skip to content

Commit 37f109d

Browse files
committed
Adds @nullable to fromJSON method in Person
1 parent 5e7898f commit 37f109d

File tree

1 file changed

+3
-0
lines changed
  • WordPress/src/main/java/org/wordpress/android/models

1 file changed

+3
-0
lines changed

WordPress/src/main/java/org/wordpress/android/models/Person.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.wordpress.android.models;
22

3+
import android.support.annotation.Nullable;
4+
35
import org.json.JSONException;
46
import org.json.JSONObject;
57
import org.wordpress.android.util.AppLog;
@@ -33,6 +35,7 @@ public Person(long personID,
3335
this.role = role;
3436
}
3537

38+
@Nullable
3639
public static Person fromJSON(JSONObject json, int localTableBlogId) {
3740
if (json == null) {
3841
return null;

0 commit comments

Comments
 (0)