We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98714cc commit f8aa1dfCopy full SHA for f8aa1df
examples/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/examples/ServerUpdateExample.java
@@ -71,7 +71,7 @@ public static void main(String[] args) throws IOException {
71
System.out.println("List all available update policies:");
72
GetUpdatePoliciesResponse listUpdatePolicies =
73
serverUpdateApi.listUpdatePolicies(projectId);
74
- assert listUpdatePolicies.getItems() != null;
+ Objects.requireNonNull(listUpdatePolicies.getItems());
75
for (UpdatePolicy policy : listUpdatePolicies.getItems()) {
76
System.out.println("*************************");
77
System.out.println("* Policy name: " + policy.getName());
0 commit comments