github classgraph/classgraph fast-classpath-scanner-2.14.0

latest releases: classgraph-4.8.172, classgraph-4.8.171, classgraph-4.8.170...
6 years ago

API cleanup. May break compatibility for a small number of users.

(1) Renamed the following methods, for consistency with ClassInfo and with the Java reflection API. If you use MethodInfo and/or FieldInfo, this may break compatibility:

  • MethodInfo#getReturnTypeSignature() -> MethodInfo#getResultTypeSignature()

  • MethodInfo#getReturnType() -> MethodInfo#getResultType()

  • MethodInfo#getReturnTypeStr() -> MethodInfo#getResultTypeStr()

  • MethodInfo#getModifiers() -> MethodInfo#getModifiersStr()

  • MethodInfo#getAccessFlags() -> MethodInfo#getModifiers()

  • MethodInfo#getParameterModifiers() -> MethodInfo#getParameterModifierStrs()

  • MethodInfo#getParameterAccessFlags() -> MethodInfo#getParameterModifiers()

  • MethodInfo#getParameterAccessFlagsInternal() -> MethodInfo#getParameterModifiersInternal()

  • FieldInfo#getModifiers() -> MethodInfo#getModifierStrs()

  • FieldInfo#getAccessFlags() -> MethodInfo#getModifiers()

(2) Removed the following, as the use of these methods and mechanisms was obscure, and supporting these was complicating the code. These can be replaced if needed with code that iteratively checks the type signature of each field in each ClassInfo object.

  • FastClasspathScanner#enableFieldTypeIndexing(boolean enable)
  • FastClasspathScanner#enableFieldTypeIndexing()
  • ClassInfo#getFieldTypes()
  • ClassInfo#getNamesOfFieldTypes()
  • ClassInfo#getNamesOfClassesWithFieldOfType(String name | Class<?> cls)
  • ScanResult#getNamesOfClassesWithFieldOfType(String name | Class<?> cls)
  • FastClasspathScanner#matchClassesWithFieldOfType(String name | Class<?> cls)

(3) Put the public fields of the new type signature classes (TypeSignature, ClassSignature, MethodSignature, etc.) behind getters, and moved the classes to a new package, io.github.lukehutch.fastclasspathscanner.typesignature. This shouldn't affect many users, as these classes were only recently added.

Don't miss a new classgraph release

NewReleases is sending notifications on new releases.