File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed 
main/java/com/fasterxml/jackson/dataformat/ion 
test/java/com/fasterxml/jackson/dataformat/ion Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -413,8 +413,8 @@ private long _getLongValue() throws IOException {
413413        try  {
414414            if  (this .getNumberType () == NumberType .BIG_INTEGER ) {
415415                BigInteger  bigInteger  = _reader .bigIntegerValue ();
416-                 if  (BI_MIN_INT .compareTo (bigInteger ) > 0  || BI_MAX_INT .compareTo (bigInteger ) < 0 ) {
417-                     this . reportOverflowLong ();
416+                 if  (BI_MIN_LONG .compareTo (bigInteger ) > 0  || BI_MAX_LONG .compareTo (bigInteger ) < 0 ) {
417+                     reportOverflowLong ();
418418                }
419419                return  bigInteger .longValue ();
420420            } else  {
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ private void _testLongCoercionFail(BigInteger input) throws Exception
7878    @ Test 
7979    public  void  testLongAsBigIntegerSize () throws  Exception  {
8080        // Note: Values: Long.MAX_VALUE through Long.MAX_VALUE -7 are considered LONG by Ion.   
81-         BigInteger  bigIntLongValue  = new  BigInteger (Long .MAX_VALUE  + "" ).subtract (new   BigInteger ( "10" ) );
81+         BigInteger  bigIntLongValue  = new  BigInteger (Long .MAX_VALUE  + "" ).subtract (BigInteger . TEN );
8282        IonParser  bigIntLongParser  = (IonParser ) new  IonFactory ().createParser (bigIntLongValue .toString ());
8383        assertEquals (JsonToken .VALUE_NUMBER_INT , bigIntLongParser .nextToken ());
8484        assertEquals (JsonParser .NumberType .BIG_INTEGER , bigIntLongParser .getNumberType ());
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments