@@ -172,8 +172,7 @@ class ConnectionImpl implements Connection {
172
172
private Channel <Boolean > fch = new Channel <Boolean >(FLUSH_CHAN_SIZE );
173
173
private List <Thread > threads = new ArrayList <Thread >();
174
174
175
- ConnectionImpl () {
176
- }
175
+ ConnectionImpl () {}
177
176
178
177
ConnectionImpl (Options opts ) {
179
178
this (opts , null );
@@ -505,6 +504,7 @@ public void run() {
505
504
}
506
505
if (opts .getClosedCallback () != null ) {
507
506
cbexec .execute (new Runnable () {
507
+
508
508
public void run () {
509
509
opts .getClosedCallback ().onClose (new ConnectionEvent (nc ));
510
510
logger .trace ("executed ClosedCB" );
@@ -525,7 +525,9 @@ public void run() {
525
525
while (!cbexec .awaitTermination (5 , TimeUnit .SECONDS )) {
526
526
logger .debug ("Awaiting completion of threads." );
527
527
}
528
- } catch (InterruptedException e ) {
528
+ } catch (
529
+
530
+ InterruptedException e ) {
529
531
logger .debug ("Interrupted waiting to shutdown cbexec" , e );
530
532
}
531
533
}
@@ -894,6 +896,7 @@ public void run() {
894
896
// TODO This mirrors go, and so does not spawn a thread/task.
895
897
logger .trace ("Spawning reconnectedCB from doReconnect()" );
896
898
cbexec .execute (new Runnable () {
899
+
897
900
public void run () {
898
901
opts .getReconnectedCallback ().onReconnect (new ConnectionEvent (nc ));
899
902
@@ -909,7 +912,9 @@ public void run() {
909
912
// the lock seems important
910
913
try {
911
914
flush ();
912
- } catch (Exception e ) {
915
+ } catch (
916
+
917
+ Exception e ) {
913
918
/* NOOP */
914
919
}
915
920
logger .trace ("doReconnect reconnected successfully!" );
@@ -1183,7 +1188,7 @@ public void run() {
1183
1188
}
1184
1189
1185
1190
protected Thread go (final Runnable task , final String name , final String group ,
1186
- final Phaser ph ) {
1191
+ final Phaser ph ) {
1187
1192
NATSThread .setDebug (true );
1188
1193
NATSThread t = new NATSThread (task , name ) {
1189
1194
public void run () {
@@ -1261,7 +1266,7 @@ class ConnectInfo {
1261
1266
private String version = ConnectionImpl .this .version ;
1262
1267
1263
1268
public ConnectInfo (boolean verbose , boolean pedantic , String username , String password ,
1264
- String token , boolean secure , String connectionName ) {
1269
+ String token , boolean secure , String connectionName ) {
1265
1270
this .verbose = new Boolean (verbose );
1266
1271
this .pedantic = new Boolean (pedantic );
1267
1272
this .user = username ;
@@ -1965,7 +1970,7 @@ private void writePublishProto(ByteBuffer buffer, byte[] subject, byte[] reply,
1965
1970
}
1966
1971
1967
1972
// Used for handrolled itoa
1968
- static final byte [] digits = {'0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' };
1973
+ static final byte [] digits = { '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' };
1969
1974
1970
1975
void _publish (byte [] subject , byte [] reply , byte [] data ) throws IOException {
1971
1976
int msgSize = (data != null ) ? data .length : 0 ;
0 commit comments