1.1 --- a/src/share/classes/com/sun/tools/javadoc/ExecutableMemberDocImpl.java Fri Mar 04 11:33:37 2011 -0800 1.2 +++ b/src/share/classes/com/sun/tools/javadoc/ExecutableMemberDocImpl.java Fri Mar 04 19:53:03 2011 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -226,7 +226,7 @@ 1.11 } 1.12 1.13 private String makeSignature(boolean full) { 1.14 - StringBuffer result = new StringBuffer(); 1.15 + StringBuilder result = new StringBuilder(); 1.16 result.append("("); 1.17 for (List<Type> types = sym.type.getParameterTypes(); types.nonEmpty(); ) { 1.18 Type t = types.head; 1.19 @@ -251,6 +251,7 @@ 1.20 /** 1.21 * Generate a key for sorting. 1.22 */ 1.23 + @Override 1.24 CollationKey generateKey() { 1.25 String k = name() + flatSignature() + typeParametersString(); 1.26 // ',' and '&' are between '$' and 'a': normalize to spaces. 1.27 @@ -263,6 +264,7 @@ 1.28 * Return the source position of the entity, or null if 1.29 * no position is available. 1.30 */ 1.31 + @Override 1.32 public SourcePosition position() { 1.33 if (sym.enclClass().sourcefile == null) return null; 1.34 return SourcePositionImpl.make(sym.enclClass().sourcefile,