Implementing checkStyleViolationSeverity=error for mdsal-eos-binding-api module 84/44884/3
authorjanab <brinda.jana@nexusis.com>
Tue, 30 Aug 2016 19:17:33 +0000 (12:17 -0700)
committerRobert Varga <nite@hq.sk>
Fri, 2 Sep 2016 13:16:41 +0000 (13:16 +0000)
Change-Id: Ic5526189f5a646a369d43676b287034c0f781ce5
Signed-off-by: Brinda Jana <brinda.jana@nexusis.com>
entityownership/mdsal-eos-binding-api/pom.xml
entityownership/mdsal-eos-binding-api/src/main/java/org/opendaylight/mdsal/eos/binding/api/Entity.java
entityownership/mdsal-eos-binding-api/src/main/java/org/opendaylight/mdsal/eos/binding/api/EntityOwnershipChange.java
entityownership/mdsal-eos-binding-api/src/main/java/org/opendaylight/mdsal/eos/binding/api/EntityOwnershipListener.java
entityownership/mdsal-eos-binding-api/src/main/java/org/opendaylight/mdsal/eos/binding/api/EntityOwnershipService.java
entityownership/mdsal-eos-binding-api/src/test/java/org/opendaylight/mdsal/eos/binding/api/EntityTest.java

index 94b217516df5a65f601276bc056785df895be9c1..ed7436db9f3aa9fc44c58724b705a10ee57a6e7d 100644 (file)
       <scope>test</scope>
     </dependency>
   </dependencies>
+  <build>
+    <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <configuration>
+              <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+          </configuration>
+      </plugin>
+    </plugins>
+  </build>
   <scm>
     <connection>scm:git:http://git.opendaylight.org/gerrit/controller.git</connection>
     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
index 2a128dfbaaff733f8fba929f6af2c2d81cbaada6..7f5e024bea3ab1f15d102b427f285d58971424c9 100644 (file)
@@ -40,8 +40,8 @@ public class Entity extends GenericEntity<InstanceIdentifier<?>> {
      * @param entityName the name of the entity used to construct a general-entity InstanceIdentifier
      */
     public Entity(@Nonnull String type, @Nonnull String entityName) {
-        super(type, InstanceIdentifier.builder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.
-                mdsal.core.general.entity.rev150930.Entity.class,
+        super(type, InstanceIdentifier.builder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang
+                .mdsal.core.general.entity.rev150930.Entity.class,
                     new EntityKey(Preconditions.checkNotNull(entityName, "entityName should not be null"))).build());
     }
 }
index df9b32839d1f5f6c20a1d9b47638790122a5f561..ce569404225d32a0d74de44da6df43a35ba71086 100644 (file)
@@ -21,16 +21,10 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 @Beta
 public class EntityOwnershipChange extends GenericEntityOwnershipChange<InstanceIdentifier<?>, Entity> {
 
-    /**
-     * {@inheritDoc}
-     */
     public EntityOwnershipChange(@Nonnull final Entity entity, @Nonnull final EntityOwnershipChangeState state) {
         super(entity, state, false);
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public EntityOwnershipChange(@Nonnull final Entity entity, @Nonnull final EntityOwnershipChangeState state,
             final boolean inJeopardy) {
         super(entity, state, inJeopardy);
index 0789f83d46ab798207501bbd07f7437b26bbfcc1..6cbafa9e4dded23c129e7fd46a9054d4ab7370c7 100644 (file)
@@ -20,9 +20,6 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 public interface EntityOwnershipListener extends
         GenericEntityOwnershipListener<InstanceIdentifier<?>, EntityOwnershipChange> {
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     void ownershipChanged(EntityOwnershipChange ownershipChange);
 }
index f2e6c6765fc9553021e0a2a9b8d3dbdef42fc977..f699f9447a0dd62b13f43f509c2aaabac813f03b 100644 (file)
@@ -24,29 +24,17 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 public interface EntityOwnershipService extends
         GenericEntityOwnershipService<InstanceIdentifier<?>, Entity, EntityOwnershipListener> {
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     EntityOwnershipCandidateRegistration registerCandidate(@Nonnull Entity entity)
             throws CandidateAlreadyRegisteredException;
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     EntityOwnershipListenerRegistration registerListener(@Nonnull String entityType,
             @Nonnull EntityOwnershipListener listener);
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     Optional<EntityOwnershipState> getOwnershipState(@Nonnull Entity forEntity);
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     boolean isCandidateRegistered(@Nonnull Entity forEntity);
 }
index 6dfdcc3e1e7edddb82b2257aecfc50346469881d..6be0adda8e0c25fcaec93e573bdf6065a169d848 100644 (file)
@@ -8,11 +8,11 @@
 package org.opendaylight.mdsal.eos.binding.api;
 
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNotEquals;
+import static org.junit.Assert.assertNotNull;
+
 import org.apache.commons.lang3.SerializationUtils;
 import org.junit.Test;
-import org.opendaylight.mdsal.eos.binding.api.Entity;
 import org.opendaylight.yangtools.yang.binding.DataContainer;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 import org.opendaylight.yangtools.yang.binding.Identifier;
@@ -24,6 +24,7 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
  * @author Thomas Pantelis
  */
 public class EntityTest {
+
     static String ENTITY_TYPE1 = "type1";
     static String ENTITY_TYPE2 = "type2";
     static final InstanceIdentifier<TestDataObject1> ID1 = InstanceIdentifier.create(TestDataObject1.class);
@@ -63,9 +64,10 @@ public class EntityTest {
     public void testEntityNameConstructor() {
         Entity entity = new Entity(ENTITY_TYPE1, "foo");
 
-        Identifier<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.
-        mdsal.core.general.entity.rev150930.Entity> keyID = entity.getIdentifier().firstKeyOf(
-                org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.core.general.entity.rev150930.Entity.class);
+        Identifier<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang
+            .mdsal.core.general.entity.rev150930.Entity> keyID = entity.getIdentifier().firstKeyOf(
+                org.opendaylight.yang.gen.v1.urn
+                    .opendaylight.params.xml.ns.yang.mdsal.core.general.entity.rev150930.Entity.class);
         assertNotNull("List key not found", keyID);
     }