From fdf3698a562063c2ac0fb0de09d5121d144e3b38 Mon Sep 17 00:00:00 2001 From: Nelson Tavares de Sousa <stu103017@mail.uni-kiel.de> Date: Fri, 1 May 2015 13:14:28 +0200 Subject: [PATCH] removed deprecated methods #102 --- src/main/java/teetime/framework/Analysis.java | 42 +------------------ 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/src/main/java/teetime/framework/Analysis.java b/src/main/java/teetime/framework/Analysis.java index 42d141bd..4f74c80b 100644 --- a/src/main/java/teetime/framework/Analysis.java +++ b/src/main/java/teetime/framework/Analysis.java @@ -118,7 +118,7 @@ public final class Analysis<T extends AnalysisConfiguration> implements Uncaught * @deprecated since 1.1, analysis will be initialized automatically by the framework */ @Deprecated - public final void init() { + private final void init() { if (initialized) { return; } @@ -182,46 +182,6 @@ public final class Analysis<T extends AnalysisConfiguration> implements Uncaught } } - /** - * This method will start the Analysis and all containing stages. - * - * @return a collection of thread/throwable pairs - * - * @deprecated since 1.1, replaced by {@link #executeBlocking()} - */ - @Deprecated - public Collection<Pair<Thread, Throwable>> start() { - // start analysis - startThreads(this.consumerThreads); - startThreads(this.finiteProducerThreads); - startThreads(this.infiniteProducerThreads); - - // wait for the analysis to complete - try { - for (Thread thread : this.finiteProducerThreads) { - thread.join(); - } - - for (Thread thread : this.consumerThreads) { - thread.join(); - } - } catch (InterruptedException e) { - LOGGER.error("Analysis has stopped unexpectedly", e); - for (Thread thread : this.finiteProducerThreads) { - thread.interrupt(); - } - - for (Thread thread : this.consumerThreads) { - thread.interrupt(); - } - } - - for (Thread thread : this.infiniteProducerThreads) { - thread.interrupt(); - } - return this.exceptions; - } - /** * Calling this method will block the current thread, until the analysis terminates. * -- GitLab