You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/05/01 13:02:49 UTC
[commons-fileupload] branch master updated: Rename method
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git
The following commit(s) were added to refs/heads/master by this push:
new d71c51b Rename method
d71c51b is described below
commit d71c51b13620e0782be7b6275482b68537eb61bc
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon May 1 09:02:46 2023 -0400
Rename method
---
.../main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java
index 33ed5c5..16d284e 100644
--- a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java
+++ b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java
@@ -249,7 +249,7 @@ public class DiskFileItem implements FileItem {
*
* @return The content charset passed by the agent or {@code null} if not defined.
*/
- public String getCharSet() {
+ public String getCharset() {
final ParameterParser parser = new ParameterParser();
parser.setLowerCaseNames(true);
// Parameter parser can handle null input
@@ -390,7 +390,7 @@ public class DiskFileItem implements FileItem {
public String getString() {
try {
final byte[] rawData = get();
- String charset = getCharSet();
+ String charset = getCharset();
if (charset == null) {
charset = defaultCharset;
}