polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject [04/12] polygene-java git commit: POLYGENE-234 : Realized that there used to be some type of default before. Just need to stop 'null' to propagate from assemblers.
Date Sun, 05 Mar 2017 15:45:34 GMT
POLYGENE-234 : Realized that there used to be some type of default before. Just need to stop
'null' to propagate from assemblers.


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

Branch: refs/heads/develop
Commit: d9be964c4a0db2fc6be6ef53d811352dbbb38359
Parents: 6c5f986
Author: niclas <niclas@spicter.com>
Authored: Sun Mar 5 13:25:35 2017 +0800
Committer: niclas <niclas@spicter.com>
Committed: Sun Mar 5 13:25:35 2017 +0800

----------------------------------------------------------------------
 .../polygene/runtime/bootstrap/ServiceDeclarationImpl.java      | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/d9be964c/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/ServiceDeclarationImpl.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/ServiceDeclarationImpl.java
b/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/ServiceDeclarationImpl.java
index 45dfc74..7740d37 100644
--- a/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/ServiceDeclarationImpl.java
+++ b/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/ServiceDeclarationImpl.java
@@ -58,10 +58,9 @@ public final class ServiceDeclarationImpl
     {
         for( ServiceAssemblyImpl serviceAssembly : serviceAssemblies )
         {
-            if( identity == null ) {
-                identity = serviceAssembly.types.get(0).getName();
+            if( identity != null ) {
+                serviceAssembly.identity = new StringIdentity( identity );
             }
-            serviceAssembly.identity = new StringIdentity( identity );
         }
         return this;
     }


Mime
View raw message