作者 Eluli Simpray

修复StringPointer的初始化方法

@@ -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 /**