Skip to content

Commit

Permalink
refactor: Common static analysis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider and TeamModerne committed Aug 10, 2023
1 parent 214a56c commit f3df02e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/org/openrewrite/jenkins/AddPluginsBom.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ public Xml visitTag(Xml.Tag tag, ExecutionContext executionContext) {

@Value
static class Artifact {
String groupId, artifactId;
String groupId;
String artifactId;
}

static class Scanned {
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/openrewrite/jenkins/CreateIndexJelly.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ public Tree visit(@Nullable Tree tree, ExecutionContext executionContext) {

@Value
private static class DescribedPlugin {
String artifactId, indexJellyPath, pomDescription;
String artifactId;
String indexJellyPath;
String pomDescription;

String contents() {
String desc = pomDescription.isEmpty() ? artifactId : pomDescription;
Expand Down

0 comments on commit f3df02e

Please sign in to comment.