正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -344,8 +344,8 @@ public class StringPointer implements Serializable, CharSequence, Comparable<Str | @@ -344,8 +344,8 @@ public class StringPointer implements Serializable, CharSequence, Comparable<Str | ||
| 344 | 344 | ||
| 345 | public StringPointer(char[] value, int offset, int length){ | 345 | public StringPointer(char[] value, int offset, int length){ |
| 346 | this.value = value; | 346 | this.value = value; |
| 347 | - this.offset = 0; | ||
| 348 | - this.length = value.length; | 347 | + this.offset = offset; |
| 348 | + this.length = length; | ||
| 349 | } | 349 | } |
| 350 | 350 | ||
| 351 | /** | 351 | /** |
| @@ -32,8 +32,8 @@ public class StringPointer implements Serializable, CharSequence, Comparable<Str | @@ -32,8 +32,8 @@ public class StringPointer implements Serializable, CharSequence, Comparable<Str | ||
| 32 | 32 | ||
| 33 | public StringPointer(char[] value, int offset, int length){ | 33 | public StringPointer(char[] value, int offset, int length){ |
| 34 | this.value = value; | 34 | this.value = value; |
| 35 | - this.offset = 0; | ||
| 36 | - this.length = value.length; | 35 | + this.offset = offset; |
| 36 | + this.length = length; | ||
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | /** | 39 | /** |
-
请 注册 或 登录 后发表评论