jfinal 3.4
This commit is contained in:
parent
ef7b0da917
commit
d12d3d8abb
@ -57,11 +57,15 @@ public class Text extends Stat implements IWritable {
|
||||
return bytes;
|
||||
}
|
||||
|
||||
if (content != null) {
|
||||
synchronized (this) {
|
||||
if (content != null) {
|
||||
bytes = content.toString().getBytes(charset);
|
||||
content = null;
|
||||
return bytes;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bytes = new String(chars).getBytes(charset);
|
||||
return bytes;
|
||||
@ -72,6 +76,8 @@ public class Text extends Stat implements IWritable {
|
||||
return chars;
|
||||
}
|
||||
|
||||
if (content != null) {
|
||||
synchronized (this) {
|
||||
if (content != null) {
|
||||
char[] charsTemp = new char[content.length()];
|
||||
content.getChars(0, content.length(), charsTemp, 0);
|
||||
@ -79,6 +85,8 @@ public class Text extends Stat implements IWritable {
|
||||
content = null;
|
||||
return chars;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
String strTemp = new String(bytes, charset);
|
||||
char[] charsTemp = new char[strTemp.length()];
|
||||
|
Loading…
Reference in New Issue
Block a user