Skip to content

Commit e196eb9

Browse files
committed
Fix typo
Signed-off-by: Gorkem Ercan <gorkem.ercan@gmail.com>
1 parent 0278e34 commit e196eb9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

wsagent/che-core-api-testing/src/main/java/org/eclipse/che/api/testing/server/messages/ServerTestingMessage.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ private static String unescape(String text) {
9393
if (text == null || text.isEmpty()) {
9494
return text;
9595
}
96-
int finaleLenght = calulateUnescapedLenght(text);
96+
int finalLength = calculateUnescapedLength(text);
9797
int length = text.length();
98-
char[] result = new char[finaleLenght];
98+
char[] result = new char[finalLength];
9999
int resultPos = 0;
100100
for (int i = 0; i < length; i++) {
101101
char c = text.charAt(i);
@@ -113,13 +113,13 @@ private static String unescape(String text) {
113113
return new String(result);
114114
}
115115

116-
private static int calulateUnescapedLenght(String text) {
116+
private static int calculateUnescapedLength(String text) {
117117
int result = 0;
118-
int lenght = text.length();
118+
int length = text.length();
119119

120-
for (int i = 0; i < lenght; i++) {
120+
for (int i = 0; i < length; i++) {
121121
char c = text.charAt(i);
122-
if (c == ESCAPE_SEPARATOR && i < lenght - 1) {
122+
if (c == ESCAPE_SEPARATOR && i < length - 1) {
123123
char nextChar = text.charAt(i + 1);
124124
if (unescape(nextChar) != 0) {
125125
i++;

0 commit comments

Comments
 (0)