From bad002fe7b73a407f0dde2f063bb7ed07744bbb3 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Fri, 13 Apr 2018 21:30:27 +0200 Subject: [PATCH] fix Java generics warning in INeutronRequest Change-Id: I4a0520f12bb98c0a0bdbc055a010dc6b175ba694 Signed-off-by: Michael Vorburger --- .../neutron/northbound/api/INeutronRequest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/INeutronRequest.java b/northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/INeutronRequest.java index e8a6a250b..c6c61ad03 100644 --- a/northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/INeutronRequest.java +++ b/northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/INeutronRequest.java @@ -15,7 +15,7 @@ import org.opendaylight.neutron.spi.INeutronObject; public interface INeutronRequest> { default T getSingleton() { // return this.sinleton - Class cls = getClass(); + Class cls = getClass(); try { Field field = cls.getDeclaredField("singleton"); @SuppressWarnings("unchecked") @@ -28,7 +28,7 @@ public interface INeutronRequest> { default boolean isSingleton() { // return this.sinleton != null - Class cls = getClass(); + Class cls = getClass(); try { Field field = cls.getDeclaredField("singleton"); return field.get(this) != null; @@ -39,7 +39,7 @@ public interface INeutronRequest> { default List getBulk() { // return this.bulkRequest - Class cls = getClass(); + Class cls = getClass(); try { Field field = cls.getDeclaredField("bulkRequest"); @SuppressWarnings("unchecked") -- 2.36.6