polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [01/48] polygene-java git commit: Minor edits, remove unused imports, simplify expression [Forced Update!]
Date Mon, 13 Mar 2017 15:28:24 GMT
Repository: polygene-java
Updated Branches:
  refs/heads/serialization-3.0 37c31d4a0 -> fb0418d31 (forced update)


Minor edits, remove unused imports, simplify expression


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

Branch: refs/heads/serialization-3.0
Commit: 3570a91945e781c1d79be2c498d7601bb78e4119
Parents: 01949a6
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Mon Mar 13 16:22:29 2017 +0100
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Mon Mar 13 16:22:29 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/polygene/api/property/PropertyDescriptor.java | 1 -
 .../java/org/apache/polygene/runtime/property/PropertyModel.java  | 3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/3570a919/core/api/src/main/java/org/apache/polygene/api/property/PropertyDescriptor.java
----------------------------------------------------------------------
diff --git a/core/api/src/main/java/org/apache/polygene/api/property/PropertyDescriptor.java
b/core/api/src/main/java/org/apache/polygene/api/property/PropertyDescriptor.java
index 2f5e641..47a8db1 100644
--- a/core/api/src/main/java/org/apache/polygene/api/property/PropertyDescriptor.java
+++ b/core/api/src/main/java/org/apache/polygene/api/property/PropertyDescriptor.java
@@ -24,7 +24,6 @@ import java.lang.reflect.AccessibleObject;
 import java.lang.reflect.Type;
 import org.apache.polygene.api.common.QualifiedName;
 import org.apache.polygene.api.structure.MetaInfoHolder;
-import org.apache.polygene.api.structure.Module;
 import org.apache.polygene.api.structure.ModuleDescriptor;
 import org.apache.polygene.api.type.ValueType;
 

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/3570a919/core/runtime/src/main/java/org/apache/polygene/runtime/property/PropertyModel.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/polygene/runtime/property/PropertyModel.java
b/core/runtime/src/main/java/org/apache/polygene/runtime/property/PropertyModel.java
index 565b218..48696eb 100644
--- a/core/runtime/src/main/java/org/apache/polygene/runtime/property/PropertyModel.java
+++ b/core/runtime/src/main/java/org/apache/polygene/runtime/property/PropertyModel.java
@@ -343,8 +343,7 @@ public class PropertyModel
                 {
                     if( valueType instanceof ValueCompositeType )
                     {
-                        Class<?> propertyType = valueType().types().findFirst().orElse(
null );
-                        value = module.instance().newValue( propertyType );
+                        value = module.instance().newValue( valueType.primaryType() );
                     }
                     else
                     {


Mime
View raw message