You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by gr...@apache.org on 2016/05/19 17:17:21 UTC

[07/15] usergrid git commit: Updated UsergridEntity constructor so you can pass more than just Maps with JsonNode values.

Updated UsergridEntity constructor so you can pass more than just Maps with JsonNode values.


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/5aacc346
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/5aacc346
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/5aacc346

Branch: refs/heads/master
Commit: 5aacc346b933b3044d7d50f25274fe0f8d10d8e2
Parents: 588ce48
Author: Robert Walsh <rj...@gmail.com>
Authored: Thu Apr 14 13:14:03 2016 -0500
Committer: Robert Walsh <rj...@gmail.com>
Committed: Thu Apr 14 13:14:03 2016 -0500

----------------------------------------------------------------------
 .../org/apache/usergrid/java/client/model/UsergridEntity.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/5aacc346/sdks/java/src/main/java/org/apache/usergrid/java/client/model/UsergridEntity.java
----------------------------------------------------------------------
diff --git a/sdks/java/src/main/java/org/apache/usergrid/java/client/model/UsergridEntity.java b/sdks/java/src/main/java/org/apache/usergrid/java/client/model/UsergridEntity.java
index f1dc622..689f818 100644
--- a/sdks/java/src/main/java/org/apache/usergrid/java/client/model/UsergridEntity.java
+++ b/sdks/java/src/main/java/org/apache/usergrid/java/client/model/UsergridEntity.java
@@ -65,7 +65,7 @@ public class UsergridEntity {
         }
     }
 
-    public UsergridEntity(@NotNull final String type, @Nullable final String name, @NotNull final Map<String, JsonNode> properties) {
+    public UsergridEntity(@NotNull final String type, @Nullable final String name, @NotNull final Map<String, ?> properties) {
         this(type,name);
         this.updatePropertiesWithMap(properties);
     }
@@ -81,7 +81,7 @@ public class UsergridEntity {
         } catch( IllegalArgumentException e ) { System.out.print("Usergrid Error: Unable to update properties from entity - " + fromEntity.toString()); }
     }
 
-    public void updatePropertiesWithMap(@NotNull final Map<String,JsonNode> properties) {
+    public void updatePropertiesWithMap(@NotNull final Map<String,?> properties) {
         try {
             this.updatePropertiesWithJsonNode(entityUpdateMapper.valueToTree(properties));
         } catch( IllegalArgumentException e ) { System.out.print("Usergrid Error: Unable to update properties from map - " + properties.toString()); }