--- old/src/java.corba/share/classes/com/sun/corba/se/impl/orbutil/concurrent/Sync.java 2015-05-05 20:15:02.683833426 +0400 +++ new/src/java.corba/share/classes/com/sun/corba/se/impl/orbutil/concurrent/Sync.java 2015-05-05 20:15:02.599833426 +0400 @@ -181,11 +181,11 @@ * } * } * } - * + * *
* Here is an even fancier version, that uses lock re-ordering * upon conflict: - *
+ **{@code * class Cell { * long value; * Sync lock = ...; @@ -214,8 +214,8 @@ * } * catch (InterruptedException ex) { return; } * } - *} - *+ * } + * }
* Interruptions are in general handled as early as possible. * Normally, InterruptionExceptions are thrown @@ -248,7 +248,7 @@ * it is normally best to just use acquire(), various forms * of busy waits can be implemented. For a simple example * (but one that would probably never be preferable to using acquire()): - *
+ **{@code * class X { * Sync lock = ... * void spinUntilAcquired() throws InterruptedException { @@ -269,7 +269,7 @@ * } * } * } - *+ * }
* In addition pure synchronization control, Syncs * may be useful in any context requiring before/after methods. @@ -277,7 +277,7 @@ * (perhaps as part of a LayeredSync) in order to obtain callbacks * before and after each method invocation for a given class. * - *
[ Introduction to this package. ] + * [ Introduction to this package. ] **/