src/share/classes/com/sun/tools/classfile/Descriptor.java

changeset 1362
c46e0c9940d6
parent 972
694ff82ca68e
child 1648
a03c4a86ea2b
equal deleted inserted replaced
1361:6517bf8e50d0 1362:c46e0c9940d6
1 /* 1 /*
2 * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
112 } 112 }
113 113
114 private String parse(String desc, int start, int end) 114 private String parse(String desc, int start, int end)
115 throws InvalidDescriptor { 115 throws InvalidDescriptor {
116 int p = start; 116 int p = start;
117 StringBuffer sb = new StringBuffer(); 117 StringBuilder sb = new StringBuilder();
118 int dims = 0; 118 int dims = 0;
119 count = 0; 119 count = 0;
120 120
121 while (p < end) { 121 while (p < end) {
122 String type; 122 String type;

mercurial