src/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java

changeset 1746
bd51ca92c013
parent 1417
522a1ee72340
child 1935
8c55df2442c1
     1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java	Tue May 14 10:14:55 2013 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java	Tue May 14 10:14:55 2013 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2013, 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 @@ -135,10 +135,8 @@
    1.11       * @return the content tree for the method type link
    1.12       */
    1.13      public Content getMethodTypeLinks(MethodTypes methodType) {
    1.14 -        StringBuilder jsShow = new StringBuilder("javascript:show(");
    1.15 -        jsShow.append(methodType.value()).append(");");
    1.16 -        HtmlTree link = HtmlTree.A(jsShow.toString(),
    1.17 -                new StringContent(methodType.text()));
    1.18 +        String jsShow = "javascript:show(" + methodType.value() +");";
    1.19 +        HtmlTree link = HtmlTree.A(jsShow, new StringContent(methodType.text()));
    1.20          return link;
    1.21      }
    1.22  

mercurial