From f92fbb8f73219c0069aa2feeeff89815729fda01 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 11 Feb 2021 13:05:08 +0100 Subject: [PATCH] Make spotless happy :) --- .../java/com/diffplug/gradle/spotless/SpotlessPlugin.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessPlugin.java b/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessPlugin.java index b15aea5d4f..80025f3164 100644 --- a/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessPlugin.java +++ b/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessPlugin.java @@ -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. @@ -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) {