From 477fce888be0bcd9d4f5431569ca6350dd7493a8 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 5 Jul 2011 15:58:47 +0200 Subject: [PATCH] fix typo in method name --- .../src/com/intellij/openapi/util/text/LineTokenizer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/util/src/com/intellij/openapi/util/text/LineTokenizer.java b/platform/util/src/com/intellij/openapi/util/text/LineTokenizer.java index ef44d545b40a..050b5262ec83 100644 --- a/platform/util/src/com/intellij/openapi/util/text/LineTokenizer.java +++ b/platform/util/src/com/intellij/openapi/util/text/LineTokenizer.java @@ -55,7 +55,7 @@ public class LineTokenizer { tokenizer.advance(); } - if (!skipLastEmptyLine && stringEdnsWithSeparator(tokenizer)) lines.add(""); + if (!skipLastEmptyLine && stringEndsWithSeparator(tokenizer)) lines.add(""); return ArrayUtil.toStringArray(lines); } @@ -68,7 +68,7 @@ public class LineTokenizer { lineCount += 1; tokenizer.advance(); } - if (!skipLastEmptyLine && stringEdnsWithSeparator(tokenizer)) { + if (!skipLastEmptyLine && stringEndsWithSeparator(tokenizer)) { lineCount += 1; } } @@ -88,7 +88,7 @@ public class LineTokenizer { return tokenize(new CharArrayCharSequence(chars, startOffset, endOffset), includeSeparators, skipLastEmptyLine); } - private static boolean stringEdnsWithSeparator(LineTokenizer tokenizer) { + private static boolean stringEndsWithSeparator(LineTokenizer tokenizer) { return tokenizer.getLineSeparatorLength() > 0; }