Skip to content

Commit 8330da9

Browse files
committed
fix pms useutilityclass classlevel
1 parent a9cc5bc commit 8330da9

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

examples/authentication/src/main/java/cloud/stackit/sdk/authentication/examples/AuthenticationExample.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
import java.io.IOException;
1010
import java.util.Scanner;
1111

12+
@SuppressWarnings("PMD.UseUtilityClass")
1213
final class AuthenticationExample {
1314

1415
private static final String SERVICE_ACCOUNT_KEY_PATH = "/path/to/sa_key.json";
1516
private static final String PRIVATE_KEY_PATH = "/path/to/private_key.pem";
1617
private static final String SERVICE_ACCOUNT_MAIL = "name-1234@sa.stackit.cloud";
1718

18-
@SuppressWarnings({"PMD.CyclomaticComplexity", "PMD.NPathComplexity", "PMD.SystemPrintln", "PMD.UseUtilityClass"})
19+
@SuppressWarnings({"PMD.CyclomaticComplexity", "PMD.NPathComplexity", "PMD.SystemPrintln"})
1920
public static void main(String[] args) throws IOException {
2021
/* OPTION 1: setting the paths to service account key (and private key) as configuration */
2122
try {

examples/custom-http-client/src/main/java/cloud/stackit/sdk/customhttpclient/examples/CustomHttpClientExample.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
* for everything to take advantage of the shared connection pool and to prevent resource leaks.
2222
*
2323
* */
24+
@SuppressWarnings("PMD.UseUtilityClass")
2425
final class CustomHttpClientExample {
2526

26-
@SuppressWarnings({"PMD.SystemPrintln", "PMD.UseUtilityClass"})
27+
@SuppressWarnings("PMD.SystemPrintln")
2728
public static void main(String[] args) throws IOException {
2829
// Credentials are read from the credentialsFile in `~/.stackit/credentials.json` or the env
2930
// STACKIT_SERVICE_ACCOUNT_KEY_PATH / STACKIT_SERVICE_ACCOUNT_KEY

examples/iaas/src/main/java/cloud/stackit/sdk/iaas/examples/IaaSExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
import java.util.UUID;
1111
import java.util.concurrent.TimeUnit;
1212

13+
@SuppressWarnings("PMD.UseUtilityClass")
1314
final class IaaSExample {
1415

1516
@SuppressWarnings({
1617
"PMD.CyclomaticComplexity",
1718
"PMD.CognitiveComplexity",
1819
"PMD.NPathComplexity",
1920
"PMD.NcssCount",
20-
"PMD.SystemPrintln",
21-
"PMD.UseUtilityClass"
21+
"PMD.SystemPrintln"
2222
})
2323
public static void main(String[] args) throws IOException {
2424
/*

examples/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/examples/ResourcemanagerExample.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
import java.util.Collections;
1818
import java.util.UUID;
1919

20+
@SuppressWarnings("PMD.UseUtilityClass")
2021
final class ResourcemanagerExample {
2122

22-
@SuppressWarnings({"PMD.NPathComplexity", "PMD.SystemPrintln", "PMD.UseUtilityClass"})
23+
@SuppressWarnings({"PMD.NPathComplexity", "PMD.SystemPrintln"})
2324
public static void main(String[] args) throws IOException {
2425
// Credentials are read from the credentialsFile in `~/.stackit/credentials.json` or the env
2526
// STACKIT_SERVICE_ACCOUNT_KEY_PATH / STACKIT_SERVICE_ACCOUNT_KEY

0 commit comments

Comments
 (0)