Skip to content

Commit

Permalink
refactor: Use of @EqualsAndHashCode on Recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider and TeamModerne committed Feb 2, 2024
1 parent 8505226 commit fa47cb2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/openrewrite/jenkins/AddPluginsBom.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import java.util.Optional;

@Value
@EqualsAndHashCode(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class AddPluginsBom extends Recipe {
private static final BomLookup LOOKUP = new BomLookup();
private static final String PLUGINS_BOM_GROUP_ID = "io.jenkins.tools.bom";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* <a href="https://www.jenkins.io/doc/developer/plugin-development/updating-parent/">plugin development guide</a>.
*/
@Value
@EqualsAndHashCode(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class DisableLocalResolutionForParentPom extends Recipe {
@Override
public String getDisplayName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* Jenkins has as custom classloader that shares libraries through api plugins.
*/
@Value
@EqualsAndHashCode(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class ReplaceLibrariesWithApiPlugin extends Recipe {
private static final XPathMatcher DEPENDENCIES_MATCHER = new XPathMatcher("/project/dependencies");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* Updates the version property unless it is already greater than minimumVersion
*/
@Value
@EqualsAndHashCode(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class UpgradeVersionProperty extends Recipe {
@Option(displayName = "Key",
description = "The name of the property key to change.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import static java.util.Objects.requireNonNull;

@Value
@EqualsAndHashCode(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class AddTeamToCodeowners extends ScanningRecipe<AddTeamToCodeowners.Scanned> {
private static final String FILE_PATH = ".github/CODEOWNERS";

Expand Down

0 comments on commit fa47cb2

Please sign in to comment.