From 0ce5108a9a2438718f14286f7004568e495a9051 Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Thu, 28 Sep 2023 21:19:00 +0200 Subject: [PATCH] Polish `ReplaceDeprecatedRuntimeExecMethods` documentation --- .../ReplaceDeprecatedRuntimeExecMethods.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/openrewrite/staticanalysis/ReplaceDeprecatedRuntimeExecMethods.java b/src/main/java/org/openrewrite/staticanalysis/ReplaceDeprecatedRuntimeExecMethods.java index 9a90e2fd4..22b8c6251 100644 --- a/src/main/java/org/openrewrite/staticanalysis/ReplaceDeprecatedRuntimeExecMethods.java +++ b/src/main/java/org/openrewrite/staticanalysis/ReplaceDeprecatedRuntimeExecMethods.java @@ -16,7 +16,6 @@ package org.openrewrite.staticanalysis; import org.openrewrite.*; -import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.JavaIsoVisitor; import org.openrewrite.java.JavaTemplate; import org.openrewrite.java.MethodMatcher; @@ -36,17 +35,17 @@ public class ReplaceDeprecatedRuntimeExecMethods extends Recipe { @Override public String getDisplayName() { - return "Replace deprecated Runtime.Exec() methods"; + return "Replace deprecated `Runtime#exec()` methods"; } @Override public String getDescription() { - return "Replace `Runtime.exec(String)` methods to use `exec(String[])` instead because the former is deprecated " + + return "Replace `Runtime#exec(String)` methods to use `exec(String[])` instead because the former is deprecated " + "after Java 18 and is no longer recommended for use by the Java documentation."; } @Override - public @Nullable Duration getEstimatedEffortPerOccurrence() { + public Duration getEstimatedEffortPerOccurrence() { return Duration.ofMinutes(3); }