mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-21 04:10:33 +00:00
6833839: RFE: improve ManifestDigester by instantiating StringBuilder constructor w/ initial value
Reviewed-by: weijun
This commit is contained in:
parent
0cbcd44d1d
commit
5e6adf6d99
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -129,7 +129,7 @@ public class ManifestDigester {
|
||||
|
||||
if (len > 6) {
|
||||
if (isNameAttr(bytes, start)) {
|
||||
StringBuilder nameBuf = new StringBuilder();
|
||||
StringBuilder nameBuf = new StringBuilder(sectionLen);
|
||||
|
||||
try {
|
||||
nameBuf.append(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user