Ver Fonte

Merge pull request #2930 from anuraaga/dev_rag

Fix error message for int64 parse failure.
Adam Cozzette há 8 anos atrás
pai
commit
37c7b766b3

+ 2 - 0
.gitignore

@@ -84,6 +84,8 @@ src/**/*.trs
 java/core/target
 java/util/target
 javanano/target
+java/.idea
+java/**/*.iml
 
 # Windows native output.
 cmake/build

+ 1 - 1
java/util/src/main/java/com/google/protobuf/util/JsonFormat.java

@@ -1536,7 +1536,7 @@ public class JsonFormat {
         BigDecimal value = new BigDecimal(json.getAsString());
         return value.longValueExact();
       } catch (Exception e) {
-        throw new InvalidProtocolBufferException("Not an int32 value: " + json);
+        throw new InvalidProtocolBufferException("Not an int64 value: " + json);
       }
     }