polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject [1/4] polygene-java git commit: Remove warnings.
Date Mon, 15 May 2017 07:04:04 GMT
Repository: polygene-java
Updated Branches:
  refs/heads/develop 6c05d0a10 -> 26e216db8


Remove warnings.

Signed-off-by: niclas <niclas@hedhman.org>


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/90a496c2
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/90a496c2
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/90a496c2

Branch: refs/heads/develop
Commit: 90a496c2d702b24a881d67bf869b4dbc02f9e266
Parents: 6c05d0a
Author: niclas <niclas@hedhman.org>
Authored: Mon May 15 14:47:16 2017 +0800
Committer: niclas <niclas@hedhman.org>
Committed: Mon May 15 14:47:16 2017 +0800

----------------------------------------------------------------------
 .../org/apache/polygene/api/service/qualifier/HasMetaInfo.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/90a496c2/core/api/src/main/java/org/apache/polygene/api/service/qualifier/HasMetaInfo.java
----------------------------------------------------------------------
diff --git a/core/api/src/main/java/org/apache/polygene/api/service/qualifier/HasMetaInfo.java
b/core/api/src/main/java/org/apache/polygene/api/service/qualifier/HasMetaInfo.java
index 04fbad8..7881968 100644
--- a/core/api/src/main/java/org/apache/polygene/api/service/qualifier/HasMetaInfo.java
+++ b/core/api/src/main/java/org/apache/polygene/api/service/qualifier/HasMetaInfo.java
@@ -74,12 +74,13 @@ public @interface HasMetaInfo
         implements AnnotationQualifier<HasMetaInfo>
     {
         @Override
-        public <T> Predicate<ServiceReference<?>> qualifier( final HasMetaInfo
hasMetaInfo )
+        public Predicate<ServiceReference<?>> qualifier( final HasMetaInfo hasMetaInfo
)
         {
             return service ->
             {
                 for( Class metaInfoType : hasMetaInfo.value() )
                 {
+                    @SuppressWarnings( "unchecked" )
                     Object metaInfo = service.metaInfo( metaInfoType );
                     if( hasMetaInfo.anded() )
                     {


Mime
View raw message