Kengo TODA
Kengo TODA
> The org.gradle.util.ClosureBackedAction type has been deprecated It is a known issue, #616, waiting for action on the Gradle side. I think it is not related to the problem you...
note: related change in Guava: https://github.com/google/guava/commit/0a2258e6691a22aa7ff2604871b520d44bbac01f#diff-5c3f56c125a86c8adde4e8754f104468
[Stream#forEach()](https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html#forEach-java.util.function.Consumer-) is a [terminal operation](https://docs.oracle.com/javase/8/docs/api/java/util/stream/package-summary.html#StreamOps), so we can treat that this stream is already consumed [and closed](https://github.com/dmlloyd/openjdk/blob/jdk8u/jdk8u/jdk/src/share/classes/java/nio/file/Files.java#L3476). And in your sample code, I can no opened file. `Files.list()` returns just...
I still think that the calling terminal operation should be enough. It is defined to close stream certainly. I can understand the following case should be problem: ```java Stream lists...
I found that my understanding is incorrect. By following code, we can confirm that terminal operation won't close the created stream instance. ```java Stream stream = Files.list(Paths.get(".")); stream.onClose(() -> {...
I'm not sure we can relax this spec (implementation). FindBugs and JSR305 has no clear documentation around this spec, but we've already got used to work with existing rules, so...
As 362c9fb4 (not in this branch) I created a sub-class of `CFG` to let specific detector ignores `assert`, but it failed. It seems that the problem exists in product architecture:...
Reproduced this problem by unit test. I will attach result of `javap`: * [java8.txt](https://github.com/spotbugs/spotbugs/files/1444076/java8.txt) * [java9.txt](https://github.com/spotbugs/spotbugs/files/1444077/java9.txt) It seems that java9 uses local method `Issue493.$closeResource:(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V` to close `AutoCloseable` instances. SpotBugs should...
I investigated implementation of `BuildObligationPolicyDatabase`, and found that we cannot support this case `$closeResource`. I expected that change like 138729ba91b77d9690588c0e2c0213f570ccbc2a can treat the parameter of `$closeResource` as annotated with `@WillClose`....
No update. Currently nobody can propose solution for this issue.