소스 검색

Merge pull request #2930 from anuraaga/dev_rag

Fix error message for int64 parse failure.
Adam Cozzette 8 년 전
부모
커밋
37c7b766b3
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 0
      .gitignore
  2. 1 1
      java/util/src/main/java/com/google/protobuf/util/JsonFormat.java

+ 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);
       }
     }