Skip to content

Commit

Permalink
Suppress false positive PMD findings
Browse files Browse the repository at this point in the history
  • Loading branch information
spannm committed Oct 11, 2024
1 parent 90c077e commit f7d2a6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/ucanaccess/converters/Functions.java
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,7 @@ public static double round(double d, double p) {
* @param _number a double or any valid numeric expression, if {@code null}, {@code null} is returned
* @return integer portion
*/
@SuppressWarnings("PMD.UnnecessaryCast")
@FunctionType(namingConflict = true, functionName = "Fix", argumentTypes = {AccessType.DOUBLE}, returnType = AccessType.DOUBLE)
public static Double fix(Double _number) {
return _number == null
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/ucanaccess/util/IThrowingSupplier.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ default R or(Function<Throwable, R> _function) {
* Returns a {@link Supplier} for this throwing supplier.
* @return supplier
*/
@SuppressWarnings("PMD.UseDiamondOperator")
default Supplier<R> toSupplier() {
return new Supplier<R>() {
@Override
Expand Down

0 comments on commit f7d2a6d

Please sign in to comment.