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 ce81e0d commit 21ab64fCopy full SHA for 21ab64f
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