Skip to content
Snippets Groups Projects
Commit 0c9097bc authored by Brutzman, Don's avatar Brutzman, Don
Browse files

javadoc tweek, SuppressWarnings about thread sleeping in loop (so that...

javadoc tweek, SuppressWarnings about thread sleeping in loop (so that programs employing it don't get deprecation warnings)
parent 4f56e835
No related branches found
No related tags found
No related merge requests found
......@@ -322,6 +322,7 @@ public class DisThreadedNetworkInterface
* Synchronized method to prevent interleaved reentry.
* @see <a href="https://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html">Java Tutorials: Synchronized Methods</a>
*/
@SuppressWarnings("SleepWhileHoldingLock") // intentional
private synchronized void createDatagramSocket()
{
boolean closedSocket = false;
......@@ -369,6 +370,7 @@ public class DisThreadedNetworkInterface
}
}
@SuppressWarnings("SleepWhileInLoop") // intentional
private Runnable receiverThreadRunnable = () -> {
int pduReceiptCounter = 0;
......@@ -515,7 +517,7 @@ public class DisThreadedNetworkInterface
rawListeners.forEach(lis->lis.incomingPdu(bl));
}
/** Method renamed as <code>close()</code>.
/** Method renamed as <code>close() so use that method instead.</code>.
*/
@Deprecated
public void kill()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment