Fix checkstyle issues to enforce it
[controller.git] / opendaylight / config / config-manager / src / main / java / org / opendaylight / controller / config / manager / impl / util / ModuleQNameUtil.java
index 1fa97acd2fe403f0dc13228b3acdab180d6a2f4e..e1c73df41369c7647543474a7cefbbf76ad4b436 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2013, 2017 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -16,7 +16,7 @@ import org.opendaylight.yangtools.yang.binding.annotations.ModuleQName;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.osgi.framework.BundleContext;
 
-public class ModuleQNameUtil {
+public final class ModuleQNameUtil {
 
     private ModuleQNameUtil() {
     }
@@ -29,7 +29,7 @@ public class ModuleQNameUtil {
                 throw new IllegalArgumentException("Unexpected interface " + inspected);
             }
             ModuleQName annotation = null;
-            while(annotation == null && inspected != null) {
+            while (annotation == null && inspected != null) {
                 annotation = inspected.getAnnotation(ModuleQName.class);
                 inspected = inspected.getSuperclass();
             }
@@ -39,5 +39,4 @@ public class ModuleQNameUtil {
         }
         return result;
     }
-
 }