Skip to content

Commit

Permalink
fix: deprecate methods which will be removed in Gradle v8
Browse files Browse the repository at this point in the history
close #598
  • Loading branch information
KengoTODA committed Oct 28, 2021
1 parent 0069e1c commit c210b8f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/groovy/com/github/spotbugs/snom/SpotBugsReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,22 @@ public Property<Boolean> getRequired() {
return isRequired;
}

/** @deprecated use {@link #getRequired()} instead. */
@Deprecated
@Override
@Input
public boolean isEnabled() {
return isEnabled.getOrElse(Boolean.TRUE);
}

/** @deprecated use {@code getRequired().set(value)} instead. */
@Deprecated
@Override
public void setEnabled(boolean b) {
isEnabled.set(b);
}

/** @deprecated use {@code getRequired().set(provider)} instead. */
@Deprecated
@Override
public void setEnabled(Provider<Boolean> provider) {
isEnabled.set(provider);
Expand Down

0 comments on commit c210b8f

Please sign in to comment.