projects
/
svjatoslav_commons.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated latest released version number in documentation.
[svjatoslav_commons.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
commons
/
string
/
String2.java
diff --git
a/src/main/java/eu/svjatoslav/commons/string/String2.java
b/src/main/java/eu/svjatoslav/commons/string/String2.java
index
8d7273d
..
c18633a
100755
(executable)
--- a/
src/main/java/eu/svjatoslav/commons/string/String2.java
+++ b/
src/main/java/eu/svjatoslav/commons/string/String2.java
@@
-86,7
+86,7
@@
public class String2 {
if (actualCutAmount > getLength())
actualCutAmount = getLength();
if (actualCutAmount > getLength())
actualCutAmount = getLength();
- chars.subList(0, actualCutAmount).clear();
+
if (actualCutAmount > 0)
chars.subList(0, actualCutAmount).clear();
return this;
}
return this;
}