Skip to content

Commit

Permalink
refactor: Move @Nullable method annotations to the return type
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider and TeamModerne committed Jul 16, 2024
1 parent cd39ce4 commit a09de82
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ public class NodeResolutionResult {
Collection<Dependency> dependencies;
Collection<Dependency> devDependencies;

@Nullable
public Dependency getDependency(String name) {
public @Nullable Dependency getDependency(String name) {
for (Dependency d : dependencies) {
if (d.getName().equals(name)) {
return d;
Expand Down

0 comments on commit a09de82

Please sign in to comment.