Permalink
Browse files

Issue #1967 was fixed.

  • Loading branch information...
1 parent 1522d02 commit 0442b9071f50c861e7773ec5817167f72727a981 @laa laa committed Jan 15, 2014
View
4 commons/src/main/java/com/orientechnologies/common/console/ODFACommandStream.java
@@ -109,8 +109,8 @@ public String nextCommand() {
} else {
// DON'T PUT THIS ON ONE LINE ONLY BECAUSE WITH JDK6 subSequence() RETURNS A CHAR CharSequence while JDK7+ RETURNS
// CharBuffer
- final CharSequence cs = buffer.subSequence(start, end + 1);
- result = cs.toString();
+ final CharSequence cs = buffer;
+ result = cs.subSequence(start, end + 1).toString();
}
buffer.position(buffer.position() + position);

0 comments on commit 0442b90

Please sign in to comment.