Skip to content

Commit 03f6849

Browse files
committed
fix pmd NPathComplexity
1 parent 071954b commit 03f6849

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class AuthenticationExample {
1818
private static final String PRIVATE_KEY_PATH = "/path/to/private_key.pem";
1919
private static final String SERVICE_ACCOUNT_MAIL = "name-1234@sa.stackit.cloud";
2020

21-
@SuppressWarnings("PMD.CyclomaticComplexity")
21+
@SuppressWarnings({"PMD.CyclomaticComplexity", "PMD.NPathComplexity"})
2222
public static void main(String[] args) {
2323
/* OPTION 1: setting the paths to service account key (and private key) as configuration */
2424
try {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
final class ResourcemanagerExample {
2323
private static final Logger LOGGER = Logger.getLogger(ResourcemanagerExample.class.getName());
2424

25+
@SuppressWarnings("PMD.NPathComplexity")
2526
public static void main(String[] args) throws IOException {
2627
// Credentials are read from the credentialsFile in `~/.stackit/credentials.json` or the env
2728
// STACKIT_SERVICE_ACCOUNT_KEY_PATH / STACKIT_SERVICE_ACCOUNT_KEY

0 commit comments

Comments
 (0)