Do not pull in xtend-lib-osgi 59/13959/3
authorRobert Varga <rovarga@cisco.com>
Wed, 7 Jan 2015 10:40:40 +0000 (11:40 +0100)
committerRobert Varga <rovarga@cisco.com>
Wed, 7 Jan 2015 12:19:07 +0000 (13:19 +0100)
There is no need for the xtend bundle, as yangtools does not rely on
xtend being on classpath anymore. Also eradicate references to xtend
annotation and utility classes.

Change-Id: Iba61200f1af88b4bfd4165d38284d7ddbcac70b5
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/codegen/impl/AbstractRuntimeCodeGenerator.java
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/codegen/impl/RuntimeGeneratedInvoker.java
opendaylight/md-sal/sal-binding-it/pom.xml
opendaylight/md-sal/sal-binding-it/src/main/java/org/opendaylight/controller/test/sal/binding/it/TestHelper.java

index eba5b8756b88cfaa936e3aa20828706a29abaf5d..677b6aa65ecd8220726e384e318968f9cfe1b116 100644 (file)
@@ -13,7 +13,6 @@ import javassist.ClassPool;
 import javassist.CtClass;
 import javassist.CtMethod;
 import javassist.NotFoundException;
 import javassist.CtClass;
 import javassist.CtMethod;
 import javassist.NotFoundException;
-import org.eclipse.xtext.xbase.lib.Extension;
 import org.opendaylight.controller.sal.binding.api.rpc.RpcRouter;
 import org.opendaylight.controller.sal.binding.codegen.RpcIsNotRoutedException;
 import org.opendaylight.controller.sal.binding.spi.NotificationInvokerFactory;
 import org.opendaylight.controller.sal.binding.api.rpc.RpcRouter;
 import org.opendaylight.controller.sal.binding.codegen.RpcIsNotRoutedException;
 import org.opendaylight.controller.sal.binding.spi.NotificationInvokerFactory;
@@ -33,8 +32,6 @@ abstract class AbstractRuntimeCodeGenerator implements org.opendaylight.controll
     @GuardedBy("this")
     private final Map<Class<? extends NotificationListener>, RuntimeGeneratedInvokerPrototype> invokerClasses = new WeakHashMap<>();
     private final CtClass brokerNotificationListener;
     @GuardedBy("this")
     private final Map<Class<? extends NotificationListener>, RuntimeGeneratedInvokerPrototype> invokerClasses = new WeakHashMap<>();
     private final CtClass brokerNotificationListener;
-
-    @Extension
     protected final JavassistUtils utils;
 
     protected AbstractRuntimeCodeGenerator(final ClassPool pool) {
     protected final JavassistUtils utils;
 
     protected AbstractRuntimeCodeGenerator(final ClassPool pool) {
index 8762562ad15fec88171d962118ca3a1c3d0a76f2..9302e4925e5d43939cd5ca3be41a3c1ab8967a02 100644 (file)
@@ -7,16 +7,14 @@
  */
 package org.opendaylight.controller.sal.binding.codegen.impl;
 
  */
 package org.opendaylight.controller.sal.binding.codegen.impl;
 
+import com.google.common.base.Objects;
+import com.google.common.base.Preconditions;
 import java.util.Set;
 import java.util.Set;
-
-import org.eclipse.xtext.xbase.lib.util.ToStringHelper;
 import org.opendaylight.controller.sal.binding.codegen.RuntimeCodeHelper;
 import org.opendaylight.controller.sal.binding.spi.NotificationInvokerFactory.NotificationInvoker;
 import org.opendaylight.yangtools.yang.binding.Notification;
 import org.opendaylight.yangtools.yang.binding.NotificationListener;
 
 import org.opendaylight.controller.sal.binding.codegen.RuntimeCodeHelper;
 import org.opendaylight.controller.sal.binding.spi.NotificationInvokerFactory.NotificationInvoker;
 import org.opendaylight.yangtools.yang.binding.Notification;
 import org.opendaylight.yangtools.yang.binding.NotificationListener;
 
-import com.google.common.base.Preconditions;
-
 final class RuntimeGeneratedInvoker implements NotificationInvoker {
     private final org.opendaylight.controller.sal.binding.api.NotificationListener<Notification> invocationProxy;
     private final RuntimeGeneratedInvokerPrototype prototype;
 final class RuntimeGeneratedInvoker implements NotificationInvoker {
     private final org.opendaylight.controller.sal.binding.api.NotificationListener<Notification> invocationProxy;
     private final RuntimeGeneratedInvokerPrototype prototype;
@@ -85,7 +83,6 @@ final class RuntimeGeneratedInvoker implements NotificationInvoker {
 
     @Override
     public String toString() {
 
     @Override
     public String toString() {
-        String result = new ToStringHelper().toString(this);
-        return result;
+        return Objects.toStringHelper(this).toString();
     }
 }
     }
 }
index 009adb6d4a5ec20a2bc0c6ff4c2a5259fbabd6f1..3b504f45b10bf62cebc1248c9b4b65a9faac2427 100644 (file)
     <!--If the dependencies are test scoped, they are not visible to other maven modules depending on sal-binding-it-->
 
     <!--TODO Create generic utilities(extract from this module) for integration tests on the controller-->
     <!--If the dependencies are test scoped, they are not visible to other maven modules depending on sal-binding-it-->
 
     <!--TODO Create generic utilities(extract from this module) for integration tests on the controller-->
-    <dependency>
-      <groupId>org.opendaylight.yangtools.thirdparty</groupId>
-      <artifactId>xtend-lib-osgi</artifactId>
-    </dependency>
     <dependency>
       <groupId>org.openexi</groupId>
       <artifactId>nagasena</artifactId>
     <dependency>
       <groupId>org.openexi</groupId>
       <artifactId>nagasena</artifactId>
index f7313f4ce703cab84da3b23503615b3c4e2d86c3..07d205bfcbf28213bcbc55a4c8d0dcef08cd8863 100644 (file)
@@ -37,8 +37,7 @@ public class TestHelper {
                 mavenBundle(CONTROLLER, "sal-common-impl").versionAsInProject(), // //
 
                 mavenBundle("org.apache.commons", "commons-lang3").versionAsInProject(), //
                 mavenBundle(CONTROLLER, "sal-common-impl").versionAsInProject(), // //
 
                 mavenBundle("org.apache.commons", "commons-lang3").versionAsInProject(), //
-                mavenBundle("com.google.guava", "guava").versionAsInProject(), // //
-                mavenBundle(YANGTOOLS + ".thirdparty", "xtend-lib-osgi").versionAsInProject() //
+                mavenBundle("com.google.guava", "guava").versionAsInProject()
         );
     }
 
         );
     }