Skip to content

Commit 97eeccf

Browse files
1 parent b9e83ad commit 97eeccf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/openrewrite/maven/AbstractRewriteBaseRunMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ protected ResultsContainer listResults(ExecutionContext ctx) throws MojoExecutio
123123
Environment env = environment(recipeArtifactCoordinatesClassloader);
124124

125125
Recipe recipe = env.activateRecipes(getActiveRecipes());
126-
if (recipe.getName().equals("org.openrewrite.Recipe$Noop")) {
126+
if ("org.openrewrite.Recipe$Noop".equals(recipe.getName())) {
127127
getLog().warn("No recipes were activated." +
128128
" Activate a recipe with <activeRecipes><recipe>com.fully.qualified.RecipeClassName</recipe></activeRecipes> in this plugin's <configuration> in your pom.xml," +
129129
" or on the command line with -Drewrite.activeRecipes=com.fully.qualified.RecipeClassName");

src/main/java/org/openrewrite/maven/MavenMojoProjectParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ private List<Path> listKotlinSources(MavenProject mavenProject, String fallbackS
532532
File[] subdirectories = parentDirectory.listFiles(File::isDirectory);
533533
if (subdirectories != null) {
534534
for (File subdirectory : subdirectories) {
535-
if (subdirectory.getName().equals("kotlin")) {
535+
if ("kotlin".equals(subdirectory.getName())) {
536536
return subdirectory.getAbsolutePath();
537537
}
538538
}

0 commit comments

Comments
 (0)