BUG-614: remove dependecy on xtend 12/7712/4
authorRobert Varga <rovarga@cisco.com>
Wed, 4 Jun 2014 17:05:20 +0000 (19:05 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Fri, 6 Jun 2014 09:50:27 +0000 (09:50 +0000)
There was an unused import of xtends' Exceptions helpers -- just remove
it and reformat the class to comply.

Change-Id: Ifb8f4993414d5abbb5c9b5030de1674ed78c5409
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/codegen/impl/BrokerImplClassLoader.java

index cab4fe9..fdd9350 100644 (file)
@@ -6,25 +6,22 @@
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 
-
 package org.opendaylight.controller.sal.binding.codegen.impl;
 
-import org.eclipse.xtext.xbase.lib.Exceptions;
-
-@SuppressWarnings("all")
 public class BrokerImplClassLoader extends ClassLoader {
-  private final ClassLoader spiClassLoader;
+    private final ClassLoader spiClassLoader;
 
-  public BrokerImplClassLoader(final ClassLoader model, final ClassLoader spi) {
-    super(model);
-    this.spiClassLoader = spi;
-  }
+    public BrokerImplClassLoader(final ClassLoader model, final ClassLoader spi) {
+        super(model);
+        this.spiClassLoader = spi;
+    }
 
-  public Class<? extends Object> loadClass(final String name) throws ClassNotFoundException {
-    try {
-      return super.loadClass(name);
-    } catch (ClassNotFoundException e) {
-        return this.spiClassLoader.loadClass(name);
+    @Override
+    public Class<? extends Object> loadClass(final String name) throws ClassNotFoundException {
+        try {
+            return super.loadClass(name);
+        } catch (ClassNotFoundException e) {
+            return this.spiClassLoader.loadClass(name);
+        }
     }
-  }
 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.