gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject [43/50] [abbrv] git commit: MongoStore: Remove some old comments
Date Wed, 04 Jun 2014 16:37:00 GMT
MongoStore: Remove some old comments


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

Branch: refs/heads/master
Commit: d8dbd51ed5e59a224e586546ebbe220cd1fdcb6d
Parents: 4ab5a9b
Author: Damien Raude-Morvan <damien@dictanova.com>
Authored: Fri May 23 12:12:43 2014 +0200
Committer: Damien Raude-Morvan <damien@dictanova.com>
Committed: Fri May 23 12:12:43 2014 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/gora/mongodb/store/MongoStore.java   | 7 -------
 1 file changed, 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/d8dbd51e/gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java
----------------------------------------------------------------------
diff --git a/gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java b/gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java
index 0f37184..fad5a1e 100644
--- a/gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java
+++ b/gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java
@@ -791,7 +791,6 @@ public class MongoStore<K, T extends PersistentBase> extends
       result = listToMongo((List<?>) value, elementSchema.getType());
       break;
     case BYTES:
-      // Beware of ByteBuffer not being safely serialized
       if (value != null) {
         result = ((ByteBuffer) value).array();
       }
@@ -807,7 +806,6 @@ public class MongoStore<K, T extends PersistentBase> extends
       result = stringToMongo(fieldSchema, storeType, value);
       break;
     case ENUM:
-      // Beware of Utf8 not being safely serialized
       if (value != null)
         result = value.toString();
       break;
@@ -900,7 +898,6 @@ public class MongoStore<K, T extends PersistentBase> extends
         result = calendar.getTime();
       }
     } else {
-      // Beware of Utf8 not being safely serialized
       if (value != null) {
         result = value.toString();
       }
@@ -930,11 +927,9 @@ public class MongoStore<K, T extends PersistentBase> extends
       Object mValue = e.getValue();
       switch (type) {
       case STRING:
-        // Beware of Utf8 not being safely serialized
         map.put(mKey, mValue.toString());
         break;
       case BYTES:
-        // Beware of ByteBuffer not being safely serialized
         map.put(mKey, ((ByteBuffer) mValue).array());
         break;
       // FIXME Record ?
@@ -966,11 +961,9 @@ public class MongoStore<K, T extends PersistentBase> extends
     for (Object item : array) {
       switch (type) {
       case STRING:
-        // Beware of Utf8 not being safely serialized
         list.add(item.toString());
         break;
       case BYTES:
-        // Beware of ByteBuffer not being safely serialized
         list.add(((ByteBuffer) item).array());
         break;
       // FIXME Record ?


Mime
View raw message