SpotlessExtension
should make use of StandardCharsets
in setEncoding
#1128
Labels
SpotlessExtension
should make use of StandardCharsets
in setEncoding
#1128
Since with Java
7.x
,StandardCharsets
provides constants for commonCharset
objects.Using the constants is less error prone, and can provide a small performance advantage compared to, for instance,
Charset.forName/1
since no scan across the internalCharset
caches is needed.It would be great is
SpotlessExtension.encoding
can be changed/enhanced in that regard.The text was updated successfully, but these errors were encountered: