bytedeco / javacpp

The missing bridge between Java and native C++
Other
4.49k stars 583 forks source link

Add a no-arg constructor to PointerScope #575

Closed HGuillemet closed 2 years ago

HGuillemet commented 2 years ago

What about adding this no-arg constructor to PointerScope ? It's just meant to prevent IDE and compilers to complain about unchecked generic array creation in constructs such as:

try (PointerScope ignored = new PointerScope()) {
   ...
}