"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/test/java/jenkins/util/TimerTest.java" between
jenkins-jenkins-2.302.tar.gz and jenkins-jenkins-2.303.tar.gz

About: Jenkins is a automation server (written in Java) which can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software (for e.g. as Continuous Integration and Continuous Delivery server). Weekly release.

TimerTest.java  (jenkins-jenkins-2.302):TimerTest.java  (jenkins-jenkins-2.303)
skipping to change at line 81 skipping to change at line 81
ScheduledExecutorService exec = Timer.get(); ScheduledExecutorService exec = Timer.get();
for (int i=0; i<threadCount; i++) { for (int i=0; i<threadCount; i++) {
final int j = i; final int j = i;
futures[j] = exec.schedule(new Runnable() { futures[j] = exec.schedule(new Runnable() {
@Override @Override
public void run() { public void run() {
try { try {
startLatch.countDown(); startLatch.countDown();
contextClassloaders[j] = Thread.currentThread(). getContextClassLoader(); contextClassloaders[j] = Thread.currentThread(). getContextClassLoader();
} catch (Exception ex) { } catch (Exception ex) {
throw new RuntimeException(ex); throw new RuntimeException(ex);
} }
} }
}, 0, TimeUnit.SECONDS); }, 0, TimeUnit.SECONDS);
} }
Thread.currentThread().setContextClassLoader(cl); Thread.currentThread().setContextClassLoader(cl);
} }
}; };
Thread t = new Thread(timerTest); Thread t = new Thread(timerTest);
t.start(); t.start();
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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