Skip to content

Commit

Permalink
Further cleanup of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Jan 28, 2024
1 parent e0758c0 commit 263095b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impl/src/main/java/com/sun/faces/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ public static String getResponseEncoding(FacesContext context, Optional<String>
}

if (encoding == null) {
// 3. If none found (this is unexpected! could only happen with a broken Facelets Compiler or ViewHandler) then get it from request.
// 3. If none found then get it from request (could happen when the view isn't built yet).
// See also ViewHandler#initView() and ViewHandler#calculateCharacterEncoding().
encoding = context.getExternalContext().getRequestCharacterEncoding();

Expand All @@ -1666,7 +1666,7 @@ public static String getResponseEncoding(FacesContext context, Optional<String>
}

if (encoding == null && context.getExternalContext().getSession(false) != null) {
// 4. If still none found (also unexpected! could only happen with a broken HttpServletRequestWrapper) then get previously known request encoding from session.
// 4. If still none found then get previously known request encoding from session.
// See also ViewHandler#initView().
encoding = (String) context.getExternalContext().getSessionMap().get(CHARACTER_ENCODING_KEY);

Expand Down

0 comments on commit 263095b

Please sign in to comment.