comparison src/com/five_ten_sg/connectbot/service/Relay.java @ 112:77ac18bc1b2f

cleanup java formatting
author Carl Byington <carl@five-ten-sg.com>
date Wed, 18 Jun 2014 13:03:01 -0700
parents 0ce5cc452d02
children 2dd627df4dfb
comparison
equal deleted inserted replaced
111:6a0ad4d384ea 112:77ac18bc1b2f
112 try { 112 try {
113 while (true) { 113 while (true) {
114 charWidth = bridge.charWidth; 114 charWidth = bridge.charWidth;
115 bytesToRead = byteBuffer.capacity() - byteBuffer.limit(); 115 bytesToRead = byteBuffer.capacity() - byteBuffer.limit();
116 offset = byteBuffer.arrayOffset() + byteBuffer.limit(); 116 offset = byteBuffer.arrayOffset() + byteBuffer.limit();
117
117 if (transport.willBlock()) buffer.testChanged(); 118 if (transport.willBlock()) buffer.testChanged();
119
118 bytesRead = transport.read(byteArray, offset, bytesToRead); 120 bytesRead = transport.read(byteArray, offset, bytesToRead);
119 121
120 if (bytesRead > 0) { 122 if (bytesRead > 0) {
121 byteBuffer.limit(byteBuffer.limit() + bytesRead); 123 byteBuffer.limit(byteBuffer.limit() + bytesRead);
122 124