Remove yang-test
[controller.git] / opendaylight / config / config-manager / src / main / java / org / opendaylight / controller / config / manager / impl / util / ModuleQNameUtil.java
index e5858ac2ee1231170b99f89ce8044d0a40dc1f21..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,20 +16,20 @@ 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() {
     }
 
-    public static Set<String> getQNames(Map<String, Entry<ModuleFactory, BundleContext>> resolved) {
-        Set<String> result = new HashSet<>();
-        for (Entry<ModuleFactory, BundleContext> entry : resolved.values()) {
+    public static Set<String> getQNames(final Map<String, Entry<ModuleFactory, BundleContext>> resolved) {
+        final Set<String> result = new HashSet<>();
+        for (final Entry<ModuleFactory, BundleContext> entry : resolved.values()) {
             Class<?> inspected = entry.getKey().getClass();
             if (inspected.isInterface()) {
                 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;
     }
-
 }