This is an automated email from the ASF dual-hosted git repository. juanpablo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/jspwiki.git
commit dabf3e1595f9c3cddf697e7ce672c497649aac3a Author: juanpablo <[email protected]> AuthorDate: Wed Mar 4 15:45:15 2020 +0100 use StandardCharsets.UTF_8 constant instead of hardcoded 'UTF-8' --- .../org/apache/wiki/auth/login/CookieAuthenticationLoginModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jspwiki-main/src/main/java/org/apache/wiki/auth/login/CookieAuthenticationLoginModule.java b/jspwiki-main/src/main/java/org/apache/wiki/auth/login/CookieAuthenticationLoginModule.java index 9d93be4..791ce01 100644 --- a/jspwiki-main/src/main/java/org/apache/wiki/auth/login/CookieAuthenticationLoginModule.java +++ b/jspwiki-main/src/main/java/org/apache/wiki/auth/login/CookieAuthenticationLoginModule.java @@ -123,7 +123,7 @@ public class CookieAuthenticationLoginModule extends AbstractLoginModule { if( cookieFile != null && cookieFile.exists() && cookieFile.canRead() ) { - try( final Reader in = new BufferedReader( new InputStreamReader( new FileInputStream( cookieFile ), "UTF-8" ) ) ) { + try( final Reader in = new BufferedReader( new InputStreamReader( new FileInputStream( cookieFile ), StandardCharsets.UTF_8 ) ) ) { final String username = FileUtil.readContents( in ); if( log.isDebugEnabled() ) {
