"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "subprojects/stress/src/test/java/org/apache/groovy/stress/util/ThreadUtils.java" between
apache-groovy-src-3.0.8.zip and apache-groovy-src-3.0.9.zip

About: Groovy is an agile dynamic (scripting) language for the Java Platform. It has features similar to those of Python, Ruby, Perl, and Smalltalk. Source release.

ThreadUtils.java  (apache-groovy-src-3.0.8):ThreadUtils.java  (apache-groovy-src-3.0.9)
skipping to change at line 32 skipping to change at line 32
import java.util.concurrent.CyclicBarrier; import java.util.concurrent.CyclicBarrier;
public class ThreadUtils { public class ThreadUtils {
private ThreadUtils() { } private ThreadUtils() { }
public static void await(CountDownLatch latch) { public static void await(CountDownLatch latch) {
try { try {
latch.await(); latch.await();
} catch (InterruptedException e) { } catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new Error(e); throw new Error(e);
} }
} }
public static void await(CyclicBarrier barrier) { public static void await(CyclicBarrier barrier) {
try { try {
barrier.await(); barrier.await();
} catch (Exception e) { } catch (Exception e) {
throw new Error(e); throw new Error(e);
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)