package org.opencb.hpg.bigdata.analysis;

import org.opencb.hpg.bigdata.analysis.exceptions.AnalysisExecutorException;

/**
 * Created by jtarraga on 30/01/17.
 */
public abstract class AnalysisExecutor {
    protected String studyId;

    protected AnalysisExecutor(String studyId) {
        this.studyId = studyId;
    }

    protected abstract void execute() throws AnalysisExecutorException;

    @Override
    public String toString() {
        return "AnalysisExecutor{" +
                "studyId='" + studyId + '\'' +
                '}';
    }

    public String getStudyId() {
        return studyId;
    }

    public AnalysisExecutor setStudyId(String studyId) {
        this.studyId = studyId;
        return this;
    }
}

package org.opencb.hpg.bigdata.analysis;

import org.opencb.hpg.bigdata.analysis.exceptions.AnalysisExecutorException;

/**
 * Created by jtarraga on 30/01/17.
 */
public abstract class AnalysisExecutor {
    protected String studyId;

    protected AnalysisExecutor(String studyId) {
        this.studyId = studyId;
    }

    protected abstract void execute() throws AnalysisExecutorException;

    @Override
    public String toString() {
        return "AnalysisExecutor{"
                + "studyId='" + studyId + '\''
                + '}';
    }

    public String getStudyId() {
        return studyId;
    }

    public AnalysisExecutor setStudyId(String studyId) {
        this.studyId = studyId;
        return this;
    }
}

fix checkstyle