kopia lustrzana https://github.com/felHR85/UsbSerial
buffer variables to final
rodzic
fbf3b89b9d
commit
8ee110590d
|
@ -12,7 +12,7 @@ public class SerialBuffer
|
||||||
static final int MAX_BULK_BUFFER = 16 * 1024;
|
static final int MAX_BULK_BUFFER = 16 * 1024;
|
||||||
private ByteBuffer readBuffer;
|
private ByteBuffer readBuffer;
|
||||||
|
|
||||||
private SynchronizedBuffer writeBuffer;
|
private final SynchronizedBuffer writeBuffer;
|
||||||
private byte[] readBufferCompatible; // Read buffer for android < 4.2
|
private byte[] readBufferCompatible; // Read buffer for android < 4.2
|
||||||
private boolean debugging = false;
|
private boolean debugging = false;
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ public class SerialBuffer
|
||||||
|
|
||||||
private class SynchronizedBuffer
|
private class SynchronizedBuffer
|
||||||
{
|
{
|
||||||
private Buffer buffer;
|
private final Buffer buffer;
|
||||||
|
|
||||||
SynchronizedBuffer()
|
SynchronizedBuffer()
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue