Skip to content

Commit

Permalink
Rename CheckFormatTask.getFormatName to CheckFormatTask.formatName
Browse files Browse the repository at this point in the history
This prevents 'gradlew build' from complaining that CheckFormatTask
declares a 'formatName' property that is not annotated.
  • Loading branch information
jbduncan committed Dec 4, 2016
1 parent 2adf98f commit 3ba3aeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ GradleException formatViolationsFor(Formatter formatter, List<File> problemFiles
}

/** Returns the name of this format. */
String getFormatName() {
String formatName() {
String name = getName();
if (name.startsWith(SpotlessPlugin.EXTENSION)) {
String after = name.substring(SpotlessPlugin.EXTENSION.length());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static GradleException youShouldTurnOnPaddedCell(CheckFormatTask task) {
}

private static File diagnoseDir(CheckFormatTask task) {
return new File(task.getProject().getBuildDir(), "spotless-diagnose-" + task.getFormatName());
return new File(task.getProject().getBuildDir(), "spotless-diagnose-" + task.formatName());
}

@SuppressFBWarnings("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE")
Expand Down

0 comments on commit 3ba3aeb

Please sign in to comment.