All Downloads are FREE. Search and download functionalities are using the official Maven repository.

errorprone.bugpattern.UnnecessaryMethodReference.md Maven / Gradle / Ivy

The newest version!
Using a method reference to refer to the abstract method of the target type is
unnecessary. For example,

```java
Stream filter(Stream xs, Predicate predicate) {
  return xs.filter(predicate::test);
}
```

```java
Stream filter(Stream xs, Predicate predicate) {
  return xs.filter(predicate);
}
```




© 2015 - 2025 Weber Informatics LLC | Privacy Policy