aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject [3/5] aries-rsa git commit: Fix/suppress warnings
Date Thu, 01 Feb 2018 17:04:32 GMT
Fix/suppress warnings


Project: http://git-wip-us.apache.org/repos/asf/aries-rsa/repo
Commit: http://git-wip-us.apache.org/repos/asf/aries-rsa/commit/89ff16c5
Tree: http://git-wip-us.apache.org/repos/asf/aries-rsa/tree/89ff16c5
Diff: http://git-wip-us.apache.org/repos/asf/aries-rsa/diff/89ff16c5

Branch: refs/heads/master
Commit: 89ff16c50d82505684e9b747f75a07781c87bbf3
Parents: 60500a6
Author: Christian Schneider <cschneid@adobe.com>
Authored: Thu Feb 1 17:49:42 2018 +0100
Committer: Christian Schneider <cschneid@adobe.com>
Committed: Thu Feb 1 17:49:42 2018 +0100

----------------------------------------------------------------------
 .../rsa/provider/fastbin/api/ObjectSerializationStrategy.java     | 1 +
 .../rsa/provider/fastbin/api/ProtobufSerializationStrategy.java   | 1 +
 .../rsa/provider/fastbin/tcp/AsyncFutureInvocationStrategy.java   | 1 -
 .../rsa/provider/fastbin/tcp/AsyncPromiseInvocationStrategy.java  | 1 -
 .../org/apache/aries/rsa/provider/fastbin/util/URISupport.java    | 1 -
 .../topologymanager/importer/local/EndpointListenerManager.java   | 2 +-
 .../topologymanager/importer/local/EndpointListenerImplTest.java  | 3 ++-
 7 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/89ff16c5/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/api/ObjectSerializationStrategy.java
----------------------------------------------------------------------
diff --git a/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/api/ObjectSerializationStrategy.java
b/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/api/ObjectSerializationStrategy.java
index da734b9..da6ebf4 100644
--- a/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/api/ObjectSerializationStrategy.java
+++ b/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/api/ObjectSerializationStrategy.java
@@ -44,6 +44,7 @@ public class ObjectSerializationStrategy implements SerializationStrategy
{
         oos.flush();
     }
 
+    @SuppressWarnings("unchecked")
     public void decodeResponse(ClassLoader loader, Class<?> type, DataByteArrayInputStream
source, AsyncCallback result) throws IOException, ClassNotFoundException {
         ClassLoaderObjectInputStream ois = new ClassLoaderObjectInputStream(source);
         ois.setClassLoader(loader);

http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/89ff16c5/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/api/ProtobufSerializationStrategy.java
----------------------------------------------------------------------
diff --git a/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/api/ProtobufSerializationStrategy.java
b/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/api/ProtobufSerializationStrategy.java
index 609c0fb..4f7e38c 100644
--- a/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/api/ProtobufSerializationStrategy.java
+++ b/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/api/ProtobufSerializationStrategy.java
@@ -103,6 +103,7 @@ public class ProtobufSerializationStrategy implements SerializationStrategy
{
         }
     }
 
+    @SuppressWarnings("unchecked")
     public void decodeResponse(ClassLoader loader, Class<?> type, DataByteArrayInputStream
source, AsyncCallback result) throws IOException, ClassNotFoundException, NoSuchFieldException,
IllegalAccessException, NoSuchMethodException, InvocationTargetException, InstantiationException
{
         if( source.readBoolean() ) {
             String className = source.readUTF();

http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/89ff16c5/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/tcp/AsyncFutureInvocationStrategy.java
----------------------------------------------------------------------
diff --git a/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/tcp/AsyncFutureInvocationStrategy.java
b/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/tcp/AsyncFutureInvocationStrategy.java
index 723494a..9af8ce0 100644
--- a/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/tcp/AsyncFutureInvocationStrategy.java
+++ b/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/tcp/AsyncFutureInvocationStrategy.java
@@ -89,7 +89,6 @@ public class AsyncFutureInvocationStrategy extends AbstractInvocationStrategy
{
         }
     }
 
-    @SuppressWarnings({"rawtypes"})
     private class AsyncResponseFuture implements ResponseFuture, AsyncCallback {
 
         private final ClassLoader loader;

http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/89ff16c5/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/tcp/AsyncPromiseInvocationStrategy.java
----------------------------------------------------------------------
diff --git a/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/tcp/AsyncPromiseInvocationStrategy.java
b/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/tcp/AsyncPromiseInvocationStrategy.java
index c6fade6..92feab1 100644
--- a/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/tcp/AsyncPromiseInvocationStrategy.java
+++ b/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/tcp/AsyncPromiseInvocationStrategy.java
@@ -75,7 +75,6 @@ public class AsyncPromiseInvocationStrategy extends AbstractInvocationStrategy
{
         }
     }
 
-    @SuppressWarnings({"rawtypes"})
     private class AsyncResponseFuture implements ResponseFuture, AsyncCallback {
 
         private final ClassLoader loader;

http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/89ff16c5/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/util/URISupport.java
----------------------------------------------------------------------
diff --git a/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/util/URISupport.java
b/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/util/URISupport.java
index b9c3fe4..7874ad8 100755
--- a/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/util/URISupport.java
+++ b/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/util/URISupport.java
@@ -128,7 +128,6 @@ public class URISupport {
         return uri.getQuery() == null ? emptyMap() : parseQuery(stripPrefix(uri.getQuery(),
"?"));
     }
 
-    @SuppressWarnings("unchecked")
     private static Map<String, String> emptyMap() {
         return Collections.EMPTY_MAP;
     }

http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/89ff16c5/topology-manager/src/main/java/org/apache/aries/rsa/topologymanager/importer/local/EndpointListenerManager.java
----------------------------------------------------------------------
diff --git a/topology-manager/src/main/java/org/apache/aries/rsa/topologymanager/importer/local/EndpointListenerManager.java
b/topology-manager/src/main/java/org/apache/aries/rsa/topologymanager/importer/local/EndpointListenerManager.java
index a14394c..5346a77 100644
--- a/topology-manager/src/main/java/org/apache/aries/rsa/topologymanager/importer/local/EndpointListenerManager.java
+++ b/topology-manager/src/main/java/org/apache/aries/rsa/topologymanager/importer/local/EndpointListenerManager.java
@@ -24,7 +24,6 @@ import java.util.Hashtable;
 import java.util.List;
 
 import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceFactory;
 import org.osgi.framework.ServiceRegistration;
 import org.osgi.framework.hooks.service.FindHook;
 import org.osgi.framework.hooks.service.ListenerHook;
@@ -43,6 +42,7 @@ import org.slf4j.LoggerFactory;
  * Discovery will then send callbacks when external endpoints are added / removed that match
  * the interest in the local system.
  */
+@SuppressWarnings("deprecation")
 public class EndpointListenerManager implements ServiceInterestListener{
 
     private final class EndpointListenerAdapter implements EndpointListener {

http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/89ff16c5/topology-manager/src/test/java/org/apache/aries/rsa/topologymanager/importer/local/EndpointListenerImplTest.java
----------------------------------------------------------------------
diff --git a/topology-manager/src/test/java/org/apache/aries/rsa/topologymanager/importer/local/EndpointListenerImplTest.java
b/topology-manager/src/test/java/org/apache/aries/rsa/topologymanager/importer/local/EndpointListenerImplTest.java
index 0df85fb..1eed20b 100644
--- a/topology-manager/src/test/java/org/apache/aries/rsa/topologymanager/importer/local/EndpointListenerImplTest.java
+++ b/topology-manager/src/test/java/org/apache/aries/rsa/topologymanager/importer/local/EndpointListenerImplTest.java
@@ -32,6 +32,7 @@ import org.osgi.framework.BundleContext;
 import org.osgi.framework.ServiceRegistration;
 import org.osgi.service.remoteserviceadmin.EndpointListener;
 
+@SuppressWarnings("deprecation")
 public class EndpointListenerImplTest extends Assert {
 
     int testCase;
@@ -55,7 +56,7 @@ public class EndpointListenerImplTest extends Assert {
 
         // expect property changes based on later calls
         EasyMock.expectLastCall().andAnswer(new IAnswer<Object>() {
-
+           
             public Object answer() throws Throwable {
                 Object[] args = EasyMock.getCurrentArguments();
                 Dictionary props = (Dictionary)args[0];


Mime
View raw message