|
28 | 28 | import java.util.Set; |
29 | 29 | import java.util.concurrent.TimeUnit; |
30 | 30 |
|
| 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 | +}) |
31 | 47 | public class IaaSVPCExample { |
32 | 48 | public static void main(String[] args) throws IOException { |
33 | 49 | /* |
@@ -264,12 +280,12 @@ public static void main(String[] args) throws IOException { |
264 | 280 | } |
265 | 281 | } |
266 | 282 |
|
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; |
274 | 290 | } |
275 | 291 | } |
0 commit comments