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 b4195fb commit a25f524
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/openrewrite/jenkins/Jenkins.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ class Jenkins {
* @param sourceFile POM
* @return jenkins-core's version if managed, otherwise null
*/
@Nullable
public static String isJenkinsPluginPom(SourceFile sourceFile) {
public static @Nullable String isJenkinsPluginPom(SourceFile sourceFile) {
return sourceFile.getMarkers()
.findFirst(MavenResolutionResult.class)
.map(mavenResolution -> mavenResolution.getPom().getManagedVersion("org.jenkins-ci.main",
Expand Down

0 comments on commit a25f524

Please sign in to comment.