cfr
cfr copied to clipboard
ClassFileSource.Factory.createInternalClassFileSource is not available for delegation
Hello,
It is suggested that you can use the ClassFileSource.Factory to get a standard instance of ClassFileSource which you can delegate to. The method is however not public, but package-private, which means that it is unusable for projects using the library.
In my use case I want to change how a single class is loaded but retain the default for all others.
However, both ClassFileSourceImpl
and OptionsImpl
are public, so I guess you can do what the factory does yourself.
new ClassFileSourceImpl(OptionsImpl.getFactory().create(Map.of()));
Maybe the JavaDoc should just be changed instead?