Skip to content

Commit

Permalink
Use Integer instead of int for The* attributes
Browse files Browse the repository at this point in the history
int will always be serialized, but Integer will only be serialized if not null.
  • Loading branch information
melissalinkert committed May 30, 2024
1 parent 17cab67 commit defb154
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ private static int ARGBToRGBA(int argb) {
public static abstract class OmeroShape {

@SerializedName(value = "TheC")
private int c;
private Integer c;
@SerializedName(value = "TheZ")
private int z;
private Integer z;
@SerializedName(value = "TheT")
private int t;
private Integer t;

@SerializedName(value = "@type")
private String type;
Expand Down

0 comments on commit defb154

Please sign in to comment.