Updated Branches:
  refs/heads/trunk 039903ef2 -> f1af43d72

GIRAPH-705: Type converters and giraph-hive cleanup (nitay)


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

Branch: refs/heads/trunk
Commit: f1af43d72ab628b7fcf94831ddc5c8945506e37b
Parents: 039903e
Author: Nitay Joffe <[email protected]>
Authored: Wed Jul 10 16:24:31 2013 -0400
Committer: Nitay Joffe <[email protected]>
Committed: Wed Jul 10 16:24:31 2013 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/giraph/conf/JsonStringConfOption.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/giraph/blob/f1af43d7/giraph-core/src/main/java/org/apache/giraph/conf/JsonStringConfOption.java
----------------------------------------------------------------------
diff --git 
a/giraph-core/src/main/java/org/apache/giraph/conf/JsonStringConfOption.java 
b/giraph-core/src/main/java/org/apache/giraph/conf/JsonStringConfOption.java
index 28f9388..9e97bbe 100644
--- a/giraph-core/src/main/java/org/apache/giraph/conf/JsonStringConfOption.java
+++ b/giraph-core/src/main/java/org/apache/giraph/conf/JsonStringConfOption.java
@@ -107,7 +107,7 @@ public class JsonStringConfOption extends 
AbstractConfOption {
     if (jsonStr != null) {
       ObjectMapper mapper = new ObjectMapper();
       try {
-        value = mapper.readValue(jsonStr, typeReference);
+        value = mapper.<T>readValue(jsonStr, typeReference);
       } catch (IOException e) {
         throw new IllegalStateException("Failed to read json from key " +
             getKey() + " with class " + typeReference);

Reply via email to