projects
/
sixth-3d.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code cleanup and formatting.
[sixth-3d.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
sixth
/
e3d
/
gui
/
textEditorComponent
/
TextLine.java
diff --git
a/src/main/java/eu/svjatoslav/sixth/e3d/gui/textEditorComponent/TextLine.java
b/src/main/java/eu/svjatoslav/sixth/e3d/gui/textEditorComponent/TextLine.java
index
a8a3de6
..
a8f2129
100755
(executable)
--- a/
src/main/java/eu/svjatoslav/sixth/e3d/gui/textEditorComponent/TextLine.java
+++ b/
src/main/java/eu/svjatoslav/sixth/e3d/gui/textEditorComponent/TextLine.java
@@
-107,7
+107,7
@@
public class TextLine {
return 0;
for (int i = 0; i < chars.size(); i++)
return 0;
for (int i = 0; i < chars.size(); i++)
- if (
!chars.get(i).isEmpty
())
+ if (
chars.get(i).hasValue
())
return i;
throw new RuntimeException("This code shall never execute");
return i;
throw new RuntimeException("This code shall never execute");
@@
-172,7
+172,7
@@
public class TextLine {
int newLength = 0;
for (int i = chars.size() - 1; i >= 0; i--)
int newLength = 0;
for (int i = chars.size() - 1; i >= 0; i--)
- if (
!chars.get(i).isEmpty
()) {
+ if (
chars.get(i).hasValue
()) {
newLength = i + 1;
break;
}
newLength = i + 1;
break;
}