Skip to content

Commit

Permalink
WW-5450 Uses proper naming when defining a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlenart committed Aug 30, 2024
1 parent 7aa491e commit b6cffd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/apache/struts2/components/Include.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public class Include extends Component {

private static final Logger LOG = LogManager.getLogger(Include.class);

private static final String systemEncoding = Charset.defaultCharset().displayName();
private static final String SYSTEM_ENCODING = Charset.defaultCharset().displayName();

protected String value;
private final HttpServletRequest req;
Expand Down Expand Up @@ -279,7 +279,7 @@ public static void include( String relativePath, Writer writer, ServletRequest r
pageResponse.getContent().writeTo(writer, encoding);
} else {
// Use the platform specific encoding
pageResponse.getContent().writeTo(writer, systemEncoding);
pageResponse.getContent().writeTo(writer, SYSTEM_ENCODING);
}
}

Expand Down

0 comments on commit b6cffd2

Please sign in to comment.