Skip to content

Commit fc02156

Browse files
committed
fix compilation error and make field private
1 parent b22f54f commit fc02156

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugin-maven/src/main/java/com/diffplug/spotless/maven/AbstractSpotlessMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public abstract class AbstractSpotlessMojo extends AbstractMojo {
9090
private ResourceManager resourceManager;
9191

9292
@Component
93-
protected BuildContext buildContext;
93+
private BuildContext buildContext;
9494

9595
@Parameter(defaultValue = "${mojoExecution.goal}", required = true, readonly = true)
9696
private String goal;

plugin-maven/src/main/java/com/diffplug/spotless/maven/incremental/UpToDateChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void setUpToDate(Path file) {
4949

5050
@Override
5151
public boolean isUpToDate(Path file) {
52-
if (buildContext.hasDelta(file)) {
52+
if (buildContext.hasDelta(file.toFile())) {
5353
return delegate.isUpToDate(file);
5454
}
5555
return true;

0 commit comments

Comments
 (0)