Skip to content
Snippets Groups Projects
Commit cfe13943 authored by Christian Wulf's avatar Christian Wulf
Browse files

deprecated init()

parent 1278810e
No related branches found
No related tags found
No related merge requests found
#FindBugs User Preferences
#Mon Feb 02 14:42:51 CET 2015
#Wed Feb 04 15:13:53 CET 2015
detector_threshold=3
effort=max
excludefilter0=.fbExcludeFilterFile|true
......
......@@ -32,6 +32,8 @@ public class Analysis implements UncaughtExceptionHandler {
private final Collection<Pair<Thread, Throwable>> exceptions = new ConcurrentLinkedQueue<Pair<Thread, Throwable>>();
private boolean initialized;
/**
* Creates a new {@link Analysis} that skips validating the port connections.
*
......@@ -47,6 +49,7 @@ public class Analysis implements UncaughtExceptionHandler {
if (validationEnabled) {
validateStages();
}
init();
}
private void validateStages() {
......@@ -66,8 +69,16 @@ public class Analysis implements UncaughtExceptionHandler {
/**
* This initializes Analysis and needs to be run right before starting it.
*
* @deprecated 1.1
*/
@Deprecated
public void init() {
if (initialized) {
return;
}
initialized = true;
final List<Stage> threadableStageJobs = this.configuration.getThreadableStageJobs();
for (Stage stage : threadableStageJobs) {
switch (stage.getTerminationStrategy()) {
......
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