public static String getParameterTypeName(Class<?> parameterType) {
        Objects.requireNonNull(parameterType, "parameterType");

        if (!parameterType.isArray()) {
            return parameterType.getName();
        }

        int arrayDepth = 0;
        while (parameterType.isArray()) {
            parameterType = parameterType.getComponentType();
            arrayDepth++;
        }

        final int bufferSize = getBufferSize(parameterType.getName(), arrayDepth);
        final StringBuilder buffer = new StringBuilder(bufferSize);

        buffer.append(parameterType.getName());
        for (int i = 0; i < arrayDepth; i++) {
            buffer.append(ARRAY_POSTFIX);
        }
        return buffer.toString();
    }
duplicate : com.navercorp.pinpoint.bootstrap.plugin.jdbc.ReflectionUtils
agent-module/profiler/src/main/java/com/navercorp/pinpoint/profiler/util/ReflectionUtils.java