Skip to content

Commit

Permalink
Make spotless happy :)
Browse files Browse the repository at this point in the history
  • Loading branch information
eskatos committed Feb 11, 2021
1 parent 5276617 commit f92fbb8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2016-2020 DiffPlug
* Copyright 2016-2021 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -48,9 +48,7 @@ public void apply(Project project) {
//
// we use System.identityHashCode() to avoid a memory leak by hanging on to the reference directly
int cacheKey = System.identityHashCode(project.getRootProject());
project.getTasks().named(BasePlugin.CLEAN_TASK_NAME).configure(clean ->
clean.doLast(unused -> SpotlessCache.clearOnce(cacheKey))
);
project.getTasks().named(BasePlugin.CLEAN_TASK_NAME).configure(clean -> clean.doLast(unused -> SpotlessCache.clearOnce(cacheKey)));
}

static String capitalize(String input) {
Expand Down

0 comments on commit f92fbb8

Please sign in to comment.