Skip to content

Commit

Permalink
[Hacktoberfest] ConfigMap fields may be 'final' #1797 (#1805)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhraSuman committed Oct 12, 2022
1 parent 73c4be4 commit 0cbb16f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
public class ConfigMap {

private String name;
private List<ConfigMapEntry> entries = new ArrayList<>();
private final List<ConfigMapEntry> entries = new ArrayList<>();

public void addEntry(ConfigMapEntry configMapEntry) {
this.entries.add(configMapEntry);
Expand All @@ -31,7 +31,7 @@ public List<ConfigMapEntry> getEntries() {

/**
* Set the name of ConfigMap.
* @param name
* @param name the ConfigMap name
*/
public void setName(String name) {
this.name = name;
Expand Down

0 comments on commit 0cbb16f

Please sign in to comment.