Preconditions.checkState(verifyConditions(review, context, workflow.getConditions(commandKey)), "Conditions are not respected");
- ImmutableMap<String, String> immutableParameters = ImmutableMap.copyOf(parameters);
+ Map<String, String> immutableParameters = ImmutableMap.copyOf(parameters);
// TODO execute functions are change state before functions that consume state (like "create-jira-issue")
Review initialReview = ((DefaultReview) review).cloneImmutable();
import org.sonar.core.review.workflow.review.Review;
import org.sonar.core.review.workflow.review.WorkflowContext;
-import javax.annotation.concurrent.Immutable;
-
/**
* Checks that a project property is set, whatever its value.
*
@Override
public boolean doVerify(Review review, WorkflowContext context) {
Settings settings = context.getProjectSettings();
- return settings.hasKey(getPropertyKey()) || settings.getDefaultValue(getPropertyKey())!=null;
+ return settings.hasKey(getPropertyKey()) || settings.getDefaultValue(getPropertyKey()) != null;
}
}