Skip to content

Commit

Permalink
Polish ReplaceDeprecatedRuntimeExecMethods documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Sep 28, 2023
1 parent 80bd001 commit 0ce5108
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}

Expand Down

0 comments on commit 0ce5108

Please sign in to comment.