Skip to content

Commit 7114fa9

Browse files
committed
Rename XContentString#length() to stringLength()
1 parent ae8aa86 commit 7114fa9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libs/x-content/src/main/java/org/elasticsearch/xcontent/Text.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public String string() {
8080
}
8181

8282
@Override
83-
public int length() {
83+
public int stringLength() {
8484
if (length < 0) {
8585
length = string().length();
8686
}

libs/x-content/src/main/java/org/elasticsearch/xcontent/XContentString.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ public interface XContentString {
2525
/**
2626
* Returns the number of characters in the represented string.
2727
*/
28-
int length();
28+
int stringLength();
2929
}

0 commit comments

Comments
 (0)