Skip to content

Commit 21ab64f

Browse files
committed
review feedback: replace assert by Objects.requireNonNull
1 parent ce81e0d commit 21ab64f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/examples/ServerUpdateExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static void main(String[] args) throws IOException {
7171
System.out.println("List all available update policies:");
7272
GetUpdatePoliciesResponse listUpdatePolicies =
7373
serverUpdateApi.listUpdatePolicies(projectId);
74-
assert listUpdatePolicies.getItems() != null;
74+
Objects.requireNonNull(listUpdatePolicies.getItems());
7575
for (UpdatePolicy policy : listUpdatePolicies.getItems()) {
7676
System.out.println("*************************");
7777
System.out.println("* Policy name: " + policy.getName());

0 commit comments

Comments
 (0)