This is an automated email from the ASF dual-hosted git repository. garydgregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
commit f9647fd8ed45baf34ae5dfcfc5e485c8444b57a0 Author: Gary Gregory <[email protected]> AuthorDate: Tue Jun 16 10:05:52 2026 +0000 Sort members --- .../java/org/apache/bcel/classfile/Utility.java | 66 +++++++++++----------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/main/java/org/apache/bcel/classfile/Utility.java b/src/main/java/org/apache/bcel/classfile/Utility.java index a9b93823..7b8e7fa9 100644 --- a/src/main/java/org/apache/bcel/classfile/Utility.java +++ b/src/main/java/org/apache/bcel/classfile/Utility.java @@ -48,15 +48,6 @@ import org.apache.commons.lang3.StringUtils; // @since 6.0 methods are no longer final public abstract class Utility { - /** - * Constructs a Utility. - * - * @deprecated Will be private in the next major release. - */ - public Utility() { - // Default constructor for subclasses - } - /** * Decode characters into bytes. Used by <a href="Utility.html#decode(java.lang.String, boolean)">decode()</a> */ @@ -772,30 +763,6 @@ public abstract class Utility { return fillup(Integer.toString(i), length, leftJustify, fill); } - /** - * WARNING: - * - * There is some nomenclature confusion through much of the BCEL code base with respect to the terms Descriptor and - * Signature. For the offical definitions see: - * - * @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.3"> Descriptors in The Java - * Virtual Machine Specification</a> - * - * @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.9.1"> Signatures in The Java - * Virtual Machine Specification</a> - * - * In brief, a descriptor is a string representing the type of a field or method. Signatures are similar, but more - * complex. Signatures are used to encode declarations written in the Java programming language that use types - * outside the type system of the Java Virtual Machine. They are used to describe the type of any class, interface, - * constructor, method or field whose declaration uses type variables or parameterized types. - * - * To parse a descriptor, call typeSignatureToString. To parse a signature, call signatureToString. - * - * Note that if the signature string is a single, non-generic item, the call to signatureToString reduces to a call - * to typeSignatureToString. Also note, that if you only wish to parse the first item in a longer signature string, - * you should call typeSignatureToString directly. - */ - /** * Parse Java type such as "char", or "java.lang.String[]" and return the signature in byte code format, for example "C" or * "[Ljava/lang/String;" respectively. @@ -855,6 +822,30 @@ public abstract class Utility { return buf.toString(); } + /** + * WARNING: + * + * There is some nomenclature confusion through much of the BCEL code base with respect to the terms Descriptor and + * Signature. For the offical definitions see: + * + * @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.3"> Descriptors in The Java + * Virtual Machine Specification</a> + * + * @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.9.1"> Signatures in The Java + * Virtual Machine Specification</a> + * + * In brief, a descriptor is a string representing the type of a field or method. Signatures are similar, but more + * complex. Signatures are used to encode declarations written in the Java programming language that use types + * outside the type system of the Java Virtual Machine. They are used to describe the type of any class, interface, + * constructor, method or field whose declaration uses type variables or parameterized types. + * + * To parse a descriptor, call typeSignatureToString. To parse a signature, call signatureToString. + * + * Note that if the signature string is a single, non-generic item, the call to signatureToString reduces to a call + * to typeSignatureToString. Also note, that if you only wish to parse the first item in a longer signature string, + * you should call typeSignatureToString directly. + */ + /** * Tests if a character is part of a Java identifier. * @@ -1626,4 +1617,13 @@ public abstract class Utility { tl.set(Integer.valueOf(value)); } + /** + * Constructs a Utility. + * + * @deprecated Will be private in the next major release. + */ + public Utility() { + // Default constructor for subclasses + } + }
