Skip to content

Commit 5a3a4b2

Browse files
committed
ignore linter
1 parent 88168cb commit 5a3a4b2

1 file changed

Lines changed: 23 additions & 7 deletions

File tree

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

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,22 @@
2828
import java.util.Set;
2929
import java.util.concurrent.TimeUnit;
3030

31+
@SuppressWarnings({
32+
"PMD.CyclomaticComplexity",
33+
"PMD.CognitiveComplexity",
34+
"PMD.NcssCount",
35+
"PMD.SystemPrintln",
36+
"PMD.AvoidThrowingRawExceptionTypes",
37+
"PMD.AvoidLiteralsInIfCondition",
38+
"PMD.AvoidUsingHardCodedIP",
39+
"PMD.AvoidDuplicateLiterals",
40+
"PMD.ShortVariable",
41+
"PMD.UseUtilityClass",
42+
"PMD.AvoidPrintStackTrace",
43+
"PMD.AvoidCatchingGenericException",
44+
"PMD.ExceptionAsFlowControl",
45+
"PMD.UseConcurrentHashMap",
46+
})
3147
public class IaaSVPCExample {
3248
public static void main(String[] args) throws IOException {
3349
/*
@@ -264,12 +280,12 @@ public static void main(String[] args) throws IOException {
264280
}
265281
}
266282

267-
private static class Resources {
268-
Project project = null;
269-
VPC vpc = null;
270-
RegionalVPC vpcRegion = null;
271-
VPCRoutingTable vpcRoutingTable = null;
272-
Route staticRoute = null;
273-
VPCNetworkRange networkRange = null;
283+
private static final class Resources {
284+
private Project project;
285+
private VPC vpc;
286+
private RegionalVPC vpcRegion;
287+
private VPCRoutingTable vpcRoutingTable;
288+
private Route staticRoute;
289+
private VPCNetworkRange networkRange;
274290
}
275291
}

0 commit comments

Comments
 (0)