HHH-7066 optimize for a special but not unlikely case
This commit is contained in:
parent
18185e58f0
commit
2710576f45
|
@ -109,6 +109,9 @@ public class DataHelper {
|
|||
* @return The content as string
|
||||
*/
|
||||
private static String extractString(Reader characterStream, long start, int length) {
|
||||
if ( length == 0 ) {
|
||||
return "";
|
||||
}
|
||||
StringBuilder stringBuilder = new StringBuilder( length );
|
||||
try {
|
||||
long skipped = characterStream.skip( start );
|
||||
|
|
Loading…
Reference in New Issue