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;
|
return bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (content != null) {
|
||||||
|
synchronized (this) {
|
||||||
if (content != null) {
|
if (content != null) {
|
||||||
bytes = content.toString().getBytes(charset);
|
bytes = content.toString().getBytes(charset);
|
||||||
content = null;
|
content = null;
|
||||||
return bytes;
|
return bytes;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bytes = new String(chars).getBytes(charset);
|
bytes = new String(chars).getBytes(charset);
|
||||||
return bytes;
|
return bytes;
|
||||||
@ -72,6 +76,8 @@ public class Text extends Stat implements IWritable {
|
|||||||
return chars;
|
return chars;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (content != null) {
|
||||||
|
synchronized (this) {
|
||||||
if (content != null) {
|
if (content != null) {
|
||||||
char[] charsTemp = new char[content.length()];
|
char[] charsTemp = new char[content.length()];
|
||||||
content.getChars(0, content.length(), charsTemp, 0);
|
content.getChars(0, content.length(), charsTemp, 0);
|
||||||
@ -79,6 +85,8 @@ public class Text extends Stat implements IWritable {
|
|||||||
content = null;
|
content = null;
|
||||||
return chars;
|
return chars;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
String strTemp = new String(bytes, charset);
|
String strTemp = new String(bytes, charset);
|
||||||
char[] charsTemp = new char[strTemp.length()];
|
char[] charsTemp = new char[strTemp.length()];
|
||||||
|
Loading…
Reference in New Issue
Block a user