Skip to content

Commit f636667

Browse files
committed
Fix javac warning in new Content(String)
1 parent c7ad740 commit f636667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/cloudbees/jenkins/support/api/Content.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public abstract class Content {
4242
/**
4343
* Parts of the name to be filtered
4444
*/
45-
private String[] filterableParameters;
45+
private final String[] filterableParameters;
4646

4747
/**
4848
* Create a Content with this name. The name is not filtered so this constructor should be used exclusively when
@@ -51,7 +51,7 @@ public abstract class Content {
5151
* @param name name of the content.
5252
*/
5353
protected Content(String name) {
54-
this(name, null);
54+
this(name, (String[]) null);
5555
}
5656

5757
/**

0 commit comments

Comments
 (0)