@@ -361,17 +361,17 @@ public void run() {
361361 return ;
362362 }
363363 try {
364- int iShutdownCount = 5 ;
364+ int shutdownCount = 5 ;
365365 int selectTimeout = 0 ;
366- while (!selectorthread .isInterrupted () && iShutdownCount != 0 ) {
366+ while (!selectorthread .isInterrupted () && shutdownCount != 0 ) {
367367 SelectionKey key = null ;
368368 try {
369369 if (isclosed .get ()) {
370370 selectTimeout = 5 ;
371371 }
372372 int keyCount = selector .select (selectTimeout );
373373 if (keyCount == 0 && isclosed .get ()) {
374- iShutdownCount --;
374+ shutdownCount --;
375375 }
376376 Set <SelectionKey > keys = selector .selectedKeys ();
377377 Iterator <SelectionKey > i = keys .iterator ();
@@ -993,15 +993,15 @@ public void broadcast(String text, Collection<WebSocket> clients) {
993993 * @param clients the clients to send the message to
994994 */
995995 private void doBroadcast (Object data , Collection <WebSocket > clients ) {
996- String sData = null ;
996+ String strData = null ;
997997 if (data instanceof String ) {
998- sData = (String ) data ;
998+ strData = (String ) data ;
999999 }
1000- ByteBuffer bData = null ;
1000+ ByteBuffer byteData = null ;
10011001 if (data instanceof ByteBuffer ) {
1002- bData = (ByteBuffer ) data ;
1002+ byteData = (ByteBuffer ) data ;
10031003 }
1004- if (sData == null && bData == null ) {
1004+ if (strData == null && byteData == null ) {
10051005 return ;
10061006 }
10071007 Map <Draft , List <Framedata >> draftFrames = new HashMap <Draft , List <Framedata >>();
@@ -1012,7 +1012,7 @@ private void doBroadcast(Object data, Collection<WebSocket> clients) {
10121012 for (WebSocket client : clientCopy ) {
10131013 if (client != null ) {
10141014 Draft draft = client .getDraft ();
1015- fillFrames (draft , draftFrames , sData , bData );
1015+ fillFrames (draft , draftFrames , strData , byteData );
10161016 try {
10171017 client .sendFrame (draftFrames .get (draft ));
10181018 } catch (WebsocketNotConnectedException e ) {
@@ -1027,18 +1027,18 @@ private void doBroadcast(Object data, Collection<WebSocket> clients) {
10271027 *
10281028 * @param draft The draft to use
10291029 * @param draftFrames The list of frames per draft to fill
1030- * @param sData the string data, can be null
1031- * @param bData the byte buffer data, can be null
1030+ * @param strData the string data, can be null
1031+ * @param byteData the byte buffer data, can be null
10321032 */
1033- private void fillFrames (Draft draft , Map <Draft , List <Framedata >> draftFrames , String sData ,
1034- ByteBuffer bData ) {
1033+ private void fillFrames (Draft draft , Map <Draft , List <Framedata >> draftFrames , String strData ,
1034+ ByteBuffer byteData ) {
10351035 if (!draftFrames .containsKey (draft )) {
10361036 List <Framedata > frames = null ;
1037- if (sData != null ) {
1038- frames = draft .createFrames (sData , false );
1037+ if (strData != null ) {
1038+ frames = draft .createFrames (strData , false );
10391039 }
1040- if (bData != null ) {
1041- frames = draft .createFrames (bData , false );
1040+ if (byteData != null ) {
1041+ frames = draft .createFrames (byteData , false );
10421042 }
10431043 if (frames != null ) {
10441044 draftFrames .put (draft , frames );
0 commit comments