Remove trafficgenerator checkstyle suppressions 50/75650/1
authorJim Hahn <jrh3@att.com>
Thu, 10 Jan 2019 21:29:30 +0000 (16:29 -0500)
committerJim Hahn <jrh3@att.com>
Thu, 10 Jan 2019 21:29:30 +0000 (16:29 -0500)
Changed class names from "PGxxx" to "PgXxx".

Change-Id: I1ea41e94c00ef98d68a6f6617a0173522c91f326
Issue-ID: POLICY-1144
Signed-off-by: Jim Hahn <jrh3@att.com>
controlloop/common/actors/actor.appc/src/main/java/org/onap/policy/controlloop/actor/appc/AppcActorServiceProvider.java
controlloop/common/model-impl/trafficgenerator/checkstyle-suppressions.xml [deleted file]
controlloop/common/model-impl/trafficgenerator/pom.xml
controlloop/common/model-impl/trafficgenerator/src/main/java/org/onap/policy/vnf/trafficgenerator/PgRequest.java [moved from controlloop/common/model-impl/trafficgenerator/src/main/java/org/onap/policy/vnf/trafficgenerator/PGRequest.java with 87% similarity]
controlloop/common/model-impl/trafficgenerator/src/main/java/org/onap/policy/vnf/trafficgenerator/PgStream.java [moved from controlloop/common/model-impl/trafficgenerator/src/main/java/org/onap/policy/vnf/trafficgenerator/PGStream.java with 90% similarity]
controlloop/common/model-impl/trafficgenerator/src/main/java/org/onap/policy/vnf/trafficgenerator/PgStreams.java [moved from controlloop/common/model-impl/trafficgenerator/src/main/java/org/onap/policy/vnf/trafficgenerator/PGStreams.java with 86% similarity]
controlloop/common/model-impl/trafficgenerator/src/test/java/org/onap/policy/vnf/trafficgenerator/DemoTest.java

index 8655849..2644986 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * APPCActorServiceProvider
  * ================================================================================
- * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -32,9 +32,9 @@ import org.onap.policy.controlloop.ControlLoopOperation;
 import org.onap.policy.controlloop.VirtualControlLoopEvent;
 import org.onap.policy.controlloop.actorserviceprovider.spi.Actor;
 import org.onap.policy.controlloop.policy.Policy;
-import org.onap.policy.vnf.trafficgenerator.PGRequest;
-import org.onap.policy.vnf.trafficgenerator.PGStream;
-import org.onap.policy.vnf.trafficgenerator.PGStreams;
+import org.onap.policy.vnf.trafficgenerator.PgRequest;
+import org.onap.policy.vnf.trafficgenerator.PgStream;
+import org.onap.policy.vnf.trafficgenerator.PgStreams;
 
 
 public class AppcActorServiceProvider implements Actor {
@@ -103,12 +103,12 @@ public class AppcActorServiceProvider implements Actor {
          */
         request.getPayload().put("generic-vnf.vnf-id", targetVnf);
 
-        PGRequest pgRequest = new PGRequest();
-        pgRequest.pgStreams = new PGStreams();
+        PgRequest pgRequest = new PgRequest();
+        pgRequest.pgStreams = new PgStreams();
 
-        PGStream pgStream;
+        PgStream pgStream;
         for (int i = 0; i < 5; i++) {
-            pgStream = new PGStream();
+            pgStream = new PgStream();
             pgStream.streamId = "fw_udp" + (i + 1);
             pgStream.isEnabled = "true";
             pgRequest.pgStreams.pgStream.add(pgStream);
diff --git a/controlloop/common/model-impl/trafficgenerator/checkstyle-suppressions.xml b/controlloop/common/model-impl/trafficgenerator/checkstyle-suppressions.xml
deleted file mode 100644 (file)
index 57d6219..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0"?>
-<!--
-  ============LICENSE_START=======================================================
-   Copyright (C) 2018 AT&T Technologies. All rights reserved.
-  ================================================================================
-  Licensed under the Apache License, Version 2.0 (the "License");
-  you may not use this file except in compliance with the License.
-  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-  
-  SPDX-License-Identifier: Apache-2.0
-  ============LICENSE_END=========================================================
--->
-
-<!DOCTYPE suppressions PUBLIC
-     "-//Puppy Crawl//DTD Suppressions 1.0//EN"
-     "http://www.puppycrawl.com/dtds/suppressions_1_0.dtd">
-<suppressions>
-  <suppress checks="AbbreviationAsWordInName"
-    files="PGRequest.java|PGStream.java|PGStreams.java"
-    lines="1-9999"/>
-</suppressions>
index 7fd59ea..922da37 100644 (file)
@@ -2,7 +2,7 @@
   ============LICENSE_START=======================================================
   Drools PDP Application Models
   ================================================================================
-  Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+  Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
   ================================================================================
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
@@ -65,7 +65,6 @@
                             <includeTestResources>true</includeTestResources>
                             <excludes>
                             </excludes>
-                            <suppressionsLocation>${project.basedir}/checkstyle-suppressions.xml</suppressionsLocation>
                             <consoleOutput>true</consoleOutput>
                             <failsOnViolation>true</failsOnViolation>
                             <violationSeverity>warning</violationSeverity>
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * trafficgenerator
  * ================================================================================
- * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -24,14 +24,14 @@ import com.google.gson.annotations.SerializedName;
 
 import java.io.Serializable;
 
-public class PGRequest implements Serializable {
+public class PgRequest implements Serializable {
 
     private static final long serialVersionUID = -3283942659786236032L;
 
     @SerializedName("pg-streams")
-    public PGStreams pgStreams;
+    public PgStreams pgStreams;
 
-    public PGRequest() {
+    public PgRequest() {
         //required by author
     }
 }
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * trafficgenerator
  * ================================================================================
- * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ import com.google.gson.annotations.SerializedName;
 
 import java.io.Serializable;
 
-public class PGStream implements Serializable {
+public class PgStream implements Serializable {
 
     private static final long serialVersionUID = 5567635677419358210L;
 
@@ -33,7 +33,7 @@ public class PGStream implements Serializable {
     @SerializedName("is-enabled")
     public String isEnabled;
 
-    public PGStream() {
+    public PgStream() {
         //required by author
     }
 }
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * trafficgenerator
  * ================================================================================
- * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -26,14 +26,14 @@ import java.io.Serializable;
 import java.util.LinkedList;
 import java.util.List;
 
-public class PGStreams implements Serializable {
+public class PgStreams implements Serializable {
 
     private static final long serialVersionUID = 5567635677419358210L;
 
     @SerializedName("pg-stream")
-    public List<PGStream> pgStream = new LinkedList<>();
+    public List<PgStream> pgStream = new LinkedList<>();
 
-    public PGStreams() {
+    public PgStreams() {
         // required by author
     }
 }
index bd59f8b..963bf0b 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * trafficgenerator
  * ================================================================================
- * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -22,9 +22,9 @@ package org.onap.policy.vnf.trafficgenerator;
 
 import org.junit.Test;
 
-import org.onap.policy.vnf.trafficgenerator.PGRequest;
-import org.onap.policy.vnf.trafficgenerator.PGStream;
-import org.onap.policy.vnf.trafficgenerator.PGStreams;
+import org.onap.policy.vnf.trafficgenerator.PgRequest;
+import org.onap.policy.vnf.trafficgenerator.PgStream;
+import org.onap.policy.vnf.trafficgenerator.PgStreams;
 import org.onap.policy.vnf.trafficgenerator.util.Serialization;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -34,12 +34,12 @@ public class DemoTest {
 
     @Test
     public void test() {
-        PGRequest request = new PGRequest();
-        request.pgStreams = new PGStreams();
+        PgRequest request = new PgRequest();
+        request.pgStreams = new PgStreams();
 
-        PGStream pgStream;
+        PgStream pgStream;
         for (int i = 0; i < 5; i++) {
-            pgStream = new PGStream();
+            pgStream = new PgStream();
             pgStream.streamId = "fw_udp" + (i + 1);
             pgStream.isEnabled = "true";
             request.pgStreams.pgStream.add(pgStream);