aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csie...@apache.org
Subject svn commit: r1784904 - /aries/trunk/cdi/cdi-extender/src/main/java/org/apache/aries/cdi/container/internal/container/ServiceDeclaration.java
Date Wed, 01 Mar 2017 10:07:44 GMT
Author: csierra
Date: Wed Mar  1 10:07:44 2017
New Revision: 1784904

URL: http://svn.apache.org/viewvc?rev=1784904&view=rev
Log:
[ARIES-CDI] minor source format

Modified:
    aries/trunk/cdi/cdi-extender/src/main/java/org/apache/aries/cdi/container/internal/container/ServiceDeclaration.java

Modified: aries/trunk/cdi/cdi-extender/src/main/java/org/apache/aries/cdi/container/internal/container/ServiceDeclaration.java
URL: http://svn.apache.org/viewvc/aries/trunk/cdi/cdi-extender/src/main/java/org/apache/aries/cdi/container/internal/container/ServiceDeclaration.java?rev=1784904&r1=1784903&r2=1784904&view=diff
==============================================================================
--- aries/trunk/cdi/cdi-extender/src/main/java/org/apache/aries/cdi/container/internal/container/ServiceDeclaration.java
(original)
+++ aries/trunk/cdi/cdi-extender/src/main/java/org/apache/aries/cdi/container/internal/container/ServiceDeclaration.java
Wed Mar  1 10:07:44 2017
@@ -93,7 +93,7 @@ public class ServiceDeclaration {
 			}
 		}
 
-		return classNames.toArray(new String[0]);
+		return classNames.toArray(new String[classNames.size()]);
 	}
 
 	public Dictionary<String, Object> getProperties() {
@@ -116,8 +116,7 @@ public class ServiceDeclaration {
 	Object getValue(ServiceProperty serviceProperty) {
 		Type type = serviceProperty.type().getType();
 		String[] value = serviceProperty.value();
-		Object object = _converter.convert(value).to(type);
-		return object;
+		return _converter.convert(value).to(type);
 	}
 
 	private static final Converter _converter = new StandardConverter();



Mime
View raw message