提交 78300874 编写于 作者: M mullan

6833839: RFE: improve ManifestDigester by instantiating StringBuilder constructor w/ initial value

Reviewed-by: weijun
上级 1004768c
/*
* 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(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册