desruisseaux commented on code in PR #286:
URL: 
https://github.com/apache/maven-clean-plugin/pull/286#discussion_r2564600695


##########
src/main/java/org/apache/maven/plugins/clean/CleanMojo.java:
##########
@@ -263,42 +261,41 @@ public void execute() {
             logger.info("Clean is skipped.");
             return;
         }
+        Cleaner cleaner = null;
+        if (fast && session != null) {
+            @SuppressWarnings("LocalVariableHidesMemberVariable")
+            final FastMode fastMode = 
FastMode.caseInsensitiveValueOf(this.fastMode);
 
-        String multiModuleProjectDirectory =
-                session != null ? 
session.getSystemProperties().get("maven.multiModuleProjectDirectory") : null;
-
-        @SuppressWarnings("LocalVariableHidesMemberVariable")
-        final Path fastDir;
-        if (fast && this.fastDir != null) {
-            fastDir = this.fastDir;
-        } else if (fast && multiModuleProjectDirectory != null) {
-            fastDir = Path.of(multiModuleProjectDirectory, "target", ".clean");
-        } else {
-            fastDir = null;
-            if (fast) {
-                logger.warn("Fast clean requires maven 3.3.1 or newer, "
-                        + "or an explicit directory to be specified with the 
'fastDir' configuration of "
-                        + "this plugin, or the 'maven.clean.fastDir' user 
property to be set.");
+            @SuppressWarnings("LocalVariableHidesMemberVariable")
+            Path fastDir = this.fastDir;
+            if (fastDir == null) {
+                String multiProjectDirectory = 
session.getSystemProperties().get("maven.multiModuleProjectDirectory");

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to