remove deprecated use of Character
This commit is contained in:
parent
7ef06c0b26
commit
3f34fb6b98
@ -26,12 +26,15 @@ public class CircularBuffer {
|
|||||||
return i % _buffer_size;
|
return i % _buffer_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public Character readOutChar() {
|
public Character readOutChar() {
|
||||||
Character result = null;
|
Character result = null;
|
||||||
|
|
||||||
|
|
||||||
//if we have data to read
|
//if we have data to read
|
||||||
if (_readable_data.get() > 0) {
|
if (_readable_data.get() > 0) {
|
||||||
result = new Character(_buffer[getTrueIndex(_read_index)]);
|
|
||||||
|
result = Character.valueOf(_buffer[getTrueIndex(_read_index)]);
|
||||||
_readable_data.decrementAndGet();
|
_readable_data.decrementAndGet();
|
||||||
_read_index++;
|
_read_index++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user