On Sat, 30 Apr 2022 09:45:07 GMT, Andrey Turbanov <[email protected]> wrote:
> The method `sun.nio.cs.ext.AbstractCharsetProvider#put` is effectively > equivalent of `Map.putIfAbsent` call. > > https://github.com/openjdk/jdk/blob/df063f7db18a40ea7325fe608b3206a6dff812c1/src/jdk.charsets/share/classes/sun/nio/cs/ext/AbstractCharsetProvider.java#L81-L84 > > Instead of hand-written method we can use `putIfAbsent` directly. > I makes code cleaner and gives a bit of performance. Thank your reviewers! ------------- PR: https://git.openjdk.org/jdk/pull/8483
