Skip to content

Commit 8dfb021

Browse files
committed
minor renaming
1 parent 86caeae commit 8dfb021

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cbor/src/main/java/com/fasterxml/jackson/dataformat/cbor/CBORGenerator.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ public final void writeFieldId(long id) throws IOException {
465465
if (!_cborContext.writeFieldId(id)) {
466466
_reportError("Can not write a field id, expecting a value");
467467
}
468-
_writeNumberNoCheck(id);
468+
_writeLongNoCheck(id);
469469
}
470470

471471
/*
@@ -593,7 +593,7 @@ public void writeArray(int[] array, int offset, int length) throws IOException
593593
_verifyValueWrite("write int array");
594594
_writeLengthMarker(PREFIX_TYPE_ARRAY, length);
595595
for (int i = offset, end = offset+length; i < end; ++i) {
596-
_writeNumberNoCheck(array[i]);
596+
_writeIntNoCheck(array[i]);
597597
}
598598
}
599599

@@ -605,7 +605,7 @@ public void writeArray(long[] array, int offset, int length) throws IOException
605605
_verifyValueWrite("write int array");
606606
_writeLengthMarker(PREFIX_TYPE_ARRAY, length);
607607
for (int i = offset, end = offset+length; i < end; ++i) {
608-
_writeNumberNoCheck(array[i]);
608+
_writeLongNoCheck(array[i]);
609609
}
610610
}
611611

@@ -617,7 +617,7 @@ public void writeArray(double[] array, int offset, int length) throws IOExceptio
617617
_verifyValueWrite("write int array");
618618
_writeLengthMarker(PREFIX_TYPE_ARRAY, length);
619619
for (int i = offset, end = offset+length; i < end; ++i) {
620-
_writeNumberNoCheck(array[i]);
620+
_writeDoubleNoCheck(array[i]);
621621
}
622622
}
623623

@@ -629,7 +629,7 @@ private final void _pushRemainingElements() {
629629
_elementCounts[_elementCountsPtr++] = _currentRemainingElements;
630630
}
631631

632-
private final void _writeNumberNoCheck(int i) throws IOException {
632+
private final void _writeIntNoCheck(int i) throws IOException {
633633
int marker;
634634
if (i < 0) {
635635
i = -i - 1;
@@ -671,10 +671,10 @@ private final void _writeNumberNoCheck(int i) throws IOException {
671671
_outputBuffer[_outputTail++] = b0;
672672
}
673673

674-
private final void _writeNumberNoCheck(long l) throws IOException {
674+
private final void _writeLongNoCheck(long l) throws IOException {
675675
if (_cfgMinimalInts) {
676676
if (l <= MAX_INT_AS_LONG && l >= MIN_INT_AS_LONG) {
677-
_writeNumberNoCheck((int) l);
677+
_writeIntNoCheck((int) l);
678678
return;
679679
}
680680
}
@@ -698,7 +698,7 @@ private final void _writeNumberNoCheck(long l) throws IOException {
698698
_outputBuffer[_outputTail++] = (byte) i;
699699
}
700700

701-
private final void _writeNumberNoCheck(double d) throws IOException {
701+
private final void _writeDoubleNoCheck(double d) throws IOException {
702702
_ensureRoomForOutput(11);
703703
// 17-Apr-2010, tatu: could also use 'doubleToIntBits', but it seems
704704
// more accurate to use exact representation; and possibly faster.

0 commit comments

Comments
 (0)