Skip to content

Commit

Permalink
Excavator: Upgrades Baseline to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot committed Jul 23, 2021
1 parent 2c684ba commit 5330a7f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.2.1'
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.2.0'
classpath 'com.palantir.gradle.revapi:gradle-revapi:1.5.0'
classpath 'com.palantir.baseline:gradle-baseline-java:3.96.0'
classpath 'com.palantir.baseline:gradle-baseline-java:4.4.0'
classpath 'gradle.plugin.org.inferred:gradle-processors:3.3.0'
classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.12.3'
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.0.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ public Indent zeroIndent() {
}

@Override
public void reformatNewlyAddedElement(ASTNode block, ASTNode addedElement) throws IncorrectOperationException {
delegate.reformatNewlyAddedElement(block, addedElement);
public void reformatNewlyAddedElement(ASTNode parent, ASTNode addedElement) throws IncorrectOperationException {
delegate.reformatNewlyAddedElement(parent, addedElement);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public final class JsonSink implements Sink {

@Override
public FinishExplorationNode startExplorationNode(
int explorationId,
int exporationId,
OptionalInt parentLevelId,
String humanDescription,
int startColumn,
Expand All @@ -51,13 +51,13 @@ public FinishExplorationNode startExplorationNode(
json = rootNode = OBJECT_MAPPER.createObjectNode();
}
json.put("type", "exploration");
json.put("id", explorationId);
json.put("id", exporationId);
parentLevelId.ifPresent(id -> json.put("parentId", id));
json.put("humanDescription", humanDescription);
// The column where we started off this exploration. Necessary to correctly indent the level.
json.put("startColumn", startColumn);
incomingState.ifPresent(state -> json.set("incomingState", OBJECT_MAPPER.valueToTree(state)));
createChildrenNode(explorationId, json);
createChildrenNode(exporationId, json);
return (parentLevel, newState) -> {
ObjectNode resultNode = OBJECT_MAPPER.createObjectNode();
json.set("result", resultNode);
Expand Down

0 comments on commit 5330a7f

Please sign in to comment.