mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diff: cleanup - better getter name
This commit is contained in:
@@ -405,7 +405,7 @@ public class ByLine {
|
||||
List<Line> result = new ArrayList<Line>(original.size());
|
||||
|
||||
for (Line line : original) {
|
||||
result.add(Line.createIgnore(line.getText(), line.getOffset1()));
|
||||
result.add(Line.createIgnore(line.getOriginalText(), line.getOffset1()));
|
||||
}
|
||||
|
||||
return result;
|
||||
@@ -434,7 +434,7 @@ public class ByLine {
|
||||
|
||||
@NotNull
|
||||
public CharSequence getContent() {
|
||||
return getText().subSequence(getOffset1(), getOffset2() - (myNewline ? 1 : 0));
|
||||
return getOriginalText().subSequence(getOffset1(), getOffset2() - (myNewline ? 1 : 0));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -40,7 +40,7 @@ abstract class TextChunk {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public CharSequence getText() {
|
||||
public CharSequence getOriginalText() {
|
||||
return myText;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user