Skip to content

io.github.classgraph.MethodTypeSignature#getTypeParameters is package private #490

@lastrix

Description

@lastrix

/** * Get the type parameters for the method. N.B. this is non-public, since the types have to be aligned with * other parameter metadata. The type of a parameter can be obtained post-alignment from the parameter's * {@link MethodParameterInfo} object. * * @return The type parameters for the method. */ List<TypeParameter> getTypeParameters() { return typeParameters; }

The TypeParameters could not be fetched through MethodParameterInfo because it has no connection (TypeParameter can only be declared in class or method).
Since this description is same as for getParameterTypeSignatures

/** * Get the type signatures of the method parameters. N.B. this is non-public, since the types have to be aligned * with other parameter metadata. The type of a parameter can be obtained post-alignment from the parameter's * {@link MethodParameterInfo} object. * * @return The parameter types for the method, as {@link TypeSignature} parsed type objects. */ List<TypeSignature> getParameterTypeSignatures() { return parameterTypeSignatures; }
I could see this as typo.
Also, i should note that same method (getTypeParameters) for classInfo is public:

/** * Get the type parameters for the class. * * @return The type parameters for the class. */ public List<TypeParameter> getTypeParameters() { return typeParameters; }

please add public modifier to io.github.classgraph.MethodTypeSignature#getTypeParameters

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions