Fix what were originally typos
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 29 Jun 2011 00:06:20 +0000 (00:06 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 29 Jun 2011 00:06:20 +0000 (00:06 +0000)
Similar to https://issues.apache.org/bugzilla/show_bug.cgi?id=50648

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1140915 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/tribes/transport/ReceiverBase.java
java/org/apache/catalina/tribes/transport/bio/util/SingleRemoveSynchronizedAddLock.java

index 5be2921..8f94519 100644 (file)
@@ -227,7 +227,11 @@ public abstract class ReceiverBase implements ChannelReceiver, ListenCallback, R
                     throw x;
                 }
                 portstart++;
-                try {Thread.sleep(25);}catch( InterruptedException ti){Thread.interrupted();}
+                try {
+                    Thread.sleep(25);
+                } catch (InterruptedException ti) {
+                    Thread.currentThread().interrupt();
+                }
                 retries = bind(socket,portstart,retries);
             }
         }
@@ -258,7 +262,11 @@ public abstract class ReceiverBase implements ChannelReceiver, ListenCallback, R
                     throw x;
                 }
                 portstart++;
-                try {Thread.sleep(25);}catch( InterruptedException ti){Thread.interrupted();}
+                try {
+                    Thread.sleep(25);
+                } catch (InterruptedException ti) {
+                    Thread.currentThread().interrupt();
+                }
                 retries = bindUdp(socket,portstart,retries);
             }
         }
index b1dcbbc..fe89b7b 100644 (file)
@@ -184,7 +184,7 @@ public class SingleRemoveSynchronizedAddLock {
                 try {
                     wait(addWaitTimeout);
                 } catch ( InterruptedException e ) {
-                    Thread.interrupted();
+                    Thread.currentThread().interrupt();
                 }
             } while ( addLocked || removeLocked );
         }
@@ -206,7 +206,7 @@ public class SingleRemoveSynchronizedAddLock {
                 try {
                     wait(removeWaitTimeout);
                 } catch ( InterruptedException e ) {
-                    Thread.interrupted();
+                    Thread.currentThread().interrupt();
                 }
             } while ( ( addLocked || ! dataAvailable ) && removeEnabled );
             remover=null;