Class TypeUtil


  • public class TypeUtil
    extends Object
    Utility class for type descriptor validation and string manipulation.
    • Constructor Detail

      • TypeUtil

        public TypeUtil()
    • Method Detail

      • validateDescriptorFormat

        public static String validateDescriptorFormat​(String desc)
        Validates and normalizes a JVM type descriptor.
        Parameters:
        desc - the JVM descriptor (e.g., "I" for int, "Ljava/lang/String;" for String)
        Returns:
        the normalized descriptor
      • capitalize

        public static String capitalize​(String str)
        Capitalizes the first letter of a given string.
        Parameters:
        str - the string to capitalize
        Returns:
        the capitalized string, or the original if null or empty