You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- example
- example.foo
- example.foo.bar
- Foo.java
obtaining the sub-packages of example only returns example.foo.bar but not example.foo. This is because the traversing algorithm works by starting with the classes present in the hierarchy and inspecting their packages only. We need to make sure that we include the intermediate packages as well.
The fix for GH-1039 introduced a performance regression as the calculation of the sub-packages escaped the SingletonSupplier and thus is now included in every hashCode() calculation. Took the chance to significantly revamp the sub-package calculation for nested packages. In other words, the entire sub-package arrangement for a package is calculated once with pre-computed intermediaries held instead of re-computing them per sub-package.
Given a source code arrangement as follows:
obtaining the sub-packages of
example
only returnsexample.foo.bar
but notexample.foo
. This is because the traversing algorithm works by starting with the classes present in the hierarchy and inspecting their packages only. We need to make sure that we include the intermediate packages as well.Related tickets
NamedInterfaces
programmatically #1009The text was updated successfully, but these errors were encountered: