usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject incubator-usergrid git commit: add string parsing to arraylists
Date Wed, 01 Apr 2015 16:20:58 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o-dev 38d002e63 -> dd1c268bc


add string parsing to arraylists


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

Branch: refs/heads/two-dot-o-dev
Commit: dd1c268bcfb30a426a86f4994bfbeb253e42ce66
Parents: 38d002e
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Wed Apr 1 10:20:18 2015 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Wed Apr 1 10:20:18 2015 -0600

----------------------------------------------------------------------
 .../persistence/index/impl/EntityToMapConverter.java         | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/dd1c268b/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EntityToMapConverter.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EntityToMapConverter.java
b/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EntityToMapConverter.java
index 2d868d8..04034cb 100644
--- a/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EntityToMapConverter.java
+++ b/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EntityToMapConverter.java
@@ -70,13 +70,7 @@ public class EntityToMapConverter {
 
             Field field = ( Field ) f;
 
-
-            if ( f instanceof ArrayField) {
-                List list = ( List ) field.getValue();
-                entityMap.put(  field.getName().toLowerCase(),
-                        new ArrayList( processCollectionForMap( list ) ) );
-            }
-            else if ( f instanceof ListField) {
+            if ( f instanceof ListField) {
                 List list = ( List ) field.getValue();
                 entityMap.put(field.getName().toLowerCase(),
                         new ArrayList( processCollectionForMap( list ) ) );


Mime
View raw message