From 4f2f8a8ef1cfa4242074c7cc0fbb60a5445090b8 Mon Sep 17 00:00:00 2001 From: Fabien Viale Date: Sat, 21 Dec 2024 14:26:51 +0100 Subject: [PATCH] Tentative fix for https://issues.apache.org/jira/browse/JCLOUDS-1643 (#214) org.jclouds.googlecomputeengine.domain.Warning: Add nullable annotation to code and data attributes --- .../java/org/jclouds/googlecomputeengine/domain/Warning.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/domain/Warning.java b/providers/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/domain/Warning.java index ec2f4b9d2c4..a28a159a7b5 100644 --- a/providers/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/domain/Warning.java +++ b/providers/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/domain/Warning.java @@ -26,9 +26,9 @@ @AutoValue public abstract class Warning { - public abstract String code(); + @Nullable public abstract String code(); @Nullable public abstract String message(); - public abstract List data(); + @Nullable public abstract List data(); @SerializedNames({"code", "message", "data"}) public static Warning create(String code, String message, List data){