-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add method JavaClass.getTransitiveDependenciesFromSelf #401
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hankem
commented
Jul 15, 2020
archunit/src/main/java/com/tngtech/archunit/core/domain/JavaClassTransitiveDependencies.java
Outdated
Show resolved
Hide resolved
hankem
commented
Aug 4, 2020
archunit/src/main/java/com/tngtech/archunit/core/domain/JavaClassTransitiveDependencies.java
Outdated
Show resolved
Hide resolved
codecholeric
reviewed
Sep 5, 2020
archunit/src/test/java/com/tngtech/archunit/core/domain/JavaClassTest.java
Outdated
Show resolved
Hide resolved
codecholeric
reviewed
Sep 5, 2020
archunit/src/main/java/com/tngtech/archunit/core/domain/JavaClass.java
Outdated
Show resolved
Hide resolved
codecholeric
reviewed
Sep 5, 2020
archunit/src/test/java/com/tngtech/archunit/core/domain/JavaClassTest.java
Outdated
Show resolved
Hide resolved
codecholeric
reviewed
Sep 5, 2020
archunit/src/test/java/com/tngtech/archunit/testutil/assertion/DependenciesAssertion.java
Outdated
Show resolved
Hide resolved
codecholeric
reviewed
Sep 5, 2020
...unit/src/test/java/com/tngtech/archunit/core/domain/JavaClassTransitiveDependenciesTest.java
Show resolved
Hide resolved
codecholeric
reviewed
Sep 5, 2020
archunit/src/main/java/com/tngtech/archunit/core/domain/JavaClass.java
Outdated
Show resolved
Hide resolved
Also compare #253? |
hankem
force-pushed
the
transitive-dependencies
branch
from
September 13, 2020 13:47
d412d65
to
6a88816
Compare
hankem
changed the title
add method JavaClass.getTransitiveDependenciesFromSelfWithinPackage
add method JavaClass.getTransitiveDependenciesFromSelf
Sep 13, 2020
hankem
force-pushed
the
transitive-dependencies
branch
from
December 6, 2020 21:35
6a88816
to
d7047ed
Compare
hankem
force-pushed
the
transitive-dependencies
branch
from
December 15, 2020 21:30
d7047ed
to
e9ead20
Compare
codecholeric
force-pushed
the
transitive-dependencies
branch
from
December 16, 2020 21:03
e9ead20
to
1050e6e
Compare
hankem
force-pushed
the
transitive-dependencies
branch
from
December 16, 2020 22:18
1a60645
to
7cb1b76
Compare
So far, if a user would call `JavaClass.getDirectDependency{From/To}Self()` on a class that was not directly imported (e.g. a class that was not present in the original import, but accessed by a class from that import) it would cause a NPE. While we do want to cut the class graph at that point (i.e. not further track dependencies for classes that are not part of the import), we do not want this exceptional behavior. This change fixes the behavior and sets empty dependencies for all non-directly imported classes, be it classes that have been resolved from the classpath later on, or stub classes, because further resolution has been turned off. Resolves: #397 Signed-off-by: Manfred Hanke <[email protected]>
hankem
force-pushed
the
transitive-dependencies
branch
from
December 16, 2020 22:21
7cb1b76
to
184e2e0
Compare
This method reports whether the class is completed from the ImportContext. Take an import of package `com.foo`, where some class `com.foo.Foo` accesses another class `com.bar.Bar`, then `Foo` would be `isFullyImported() == true`, because it was explicitly covered by the package to be imported, but `Bar` would have `isFullyImported() == false`, because it was not covered by the original package. This method is useful, because it has strong implications, whether the class is fully imported or not. For example only a fully imported classes has its dependencies imported, a class that was just imported as a dependency of a fully imported class will have its dependencies cut off to avoid uncontrollably huge imports. Signed-off-by: Manfred Hanke <[email protected]>
Signed-off-by: Manfred Hanke <[email protected]>
codecholeric
force-pushed
the
transitive-dependencies
branch
from
December 16, 2020 22:23
184e2e0
to
27dae94
Compare
codecholeric
added a commit
that referenced
this pull request
Feb 21, 2021
Signed-off-by: Manfred Hanke <[email protected]>
hankem
added a commit
that referenced
this pull request
Dec 9, 2022
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.6.0 to 3.8.0. from [actions/setup-java's releases](https://github.com/actions/setup-java/releases): > # v3.8.0 > > In scope of this release we added logic to pass the token input through on GHES for Microsoft Build of OpenJDK ([actions/setup-java#395](https://github-redirect.dependabot.com/actions/setup-java/pull/395)) and updated [minimatch](https://github-redirect.dependabot.com/actions/setup-java/pull/413) dependency. Commits * [`c3ac5dd`](actions/setup-java@c3ac5dd) Revert "Add support for Oracle JDK ([#401](https://github-redirect.dependabot.com/actions/setup-java/issues/401))" ([#421](https://github-redirect.dependabot.com/actions/setup-java/issues/421)) * [`dcd29da`](actions/setup-java@dcd29da) Fix typo in README.md ([#419](https://github-redirect.dependabot.com/actions/setup-java/issues/419)) * [`19eeec5`](actions/setup-java@19eeec5) Update to latest `actions/publish-action` ([#411](https://github-redirect.dependabot.com/actions/setup-java/issues/411)) * [`bd7e5d2`](actions/setup-java@bd7e5d2) Update minimatch to 3.1.2 ([#413](https://github-redirect.dependabot.com/actions/setup-java/issues/413)) * [`6cdf39a`](actions/setup-java@6cdf39a) Add support for Oracle JDK ([#401](https://github-redirect.dependabot.com/actions/setup-java/issues/401)) * [`7db6b45`](actions/setup-java@7db6b45) Eclipse Temurin instead of Adopt OpenJDK ([#398](https://github-redirect.dependabot.com/actions/setup-java/issues/398)) * [`bf2f02c`](actions/setup-java@bf2f02c) Pass the token input through on GHES for Microsoft Build of OpenJDK ([#395](https://github-redirect.dependabot.com/actions/setup-java/issues/395)) * See full diff in [compare view](actions/setup-java@v3.6.0...v3.8.0)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Instead of the initial
getTransitiveDependenciesFromSelfWithinPackage(String packageNamePrefix)
, I now suggest the simpler API:Signed-off-by: Manfred Hanke [email protected]