Bump MRI upstreams
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / services / AbstractMultipartService.java
index 187871ef8fa1222b343b701c110b77d58c5fca18..d29fbbf9708545ce26341df94529c886df76d136 100644 (file)
@@ -11,7 +11,7 @@ import com.google.common.util.concurrent.FutureCallback;
 import com.google.common.util.concurrent.ListenableFuture;
 import java.util.List;
 import java.util.function.Function;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
@@ -22,9 +22,8 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731
 import org.opendaylight.yangtools.yang.common.RpcResult;
 
 public abstract class AbstractMultipartService<I, T extends OfHeader> extends AbstractService<I, List<T>> {
-
     private static final Function<OfHeader, Boolean> ALTERNATE_IS_COMPLETE = message ->
-        !(message instanceof MultipartReply) || !((MultipartReply) message).isRequestMore();
+        !(message instanceof MultipartReply) || !((MultipartReply) message).getRequestMore();
 
     protected AbstractMultipartService(final RequestContextStack requestContextStack,
                                        final DeviceContext deviceContext) {
@@ -32,17 +31,17 @@ public abstract class AbstractMultipartService<I, T extends OfHeader> extends Ab
     }
 
     @Override
-    protected FutureCallback<OfHeader> createCallback(RequestContext<List<T>> context, Class<?> requestType) {
+    protected FutureCallback<OfHeader> createCallback(final RequestContext<List<T>> context,
+            final Class<?> requestType) {
         return canUseSingleLayerSerialization()
             ? new SingleLayerMultipartRequestCallback<>(context, requestType, getDeviceContext(), getEventIdentifier())
             : new MultiLayerMultipartRequestCallback<>(context, requestType, getDeviceContext(), getEventIdentifier());
     }
 
     @Override
-    public final ListenableFuture<RpcResult<List<T>>> handleServiceCall(@Nonnull final I input) {
+    public final ListenableFuture<RpcResult<List<T>>> handleServiceCall(@NonNull final I input) {
         return canUseSingleLayerSerialization()
             ? super.handleServiceCall(input, ALTERNATE_IS_COMPLETE)
             : super.handleServiceCall(input);
     }
-
 }