-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: do not use BooleanWithUndefined outside of annotations
Signed-off-by: Chris Laprun <claprun@redhat.com>
- Loading branch information
Showing
5 changed files
with
15 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
public final class KubernetesDependentResourceConfigBuilder<R extends HasMetadata> { | ||
|
||
private boolean createResourceOnlyIfNotExistingWithSSA; | ||
private BooleanWithUndefined useSSA = BooleanWithUndefined.UNDEFINED; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
metacosm
Author
Collaborator
|
||
private Boolean useSSA = null; | ||
|
||
private InformerConfiguration<R> informerConfiguration; | ||
|
||
|
@@ -23,7 +23,7 @@ public KubernetesDependentResourceConfigBuilder<R> withCreateResourceOnlyIfNotEx | |
return this; | ||
} | ||
|
||
public KubernetesDependentResourceConfigBuilder<R> withUseSSA(BooleanWithUndefined useSSA) { | ||
public KubernetesDependentResourceConfigBuilder<R> withUseSSA(boolean useSSA) { | ||
this.useSSA = useSSA; | ||
return this; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I don't think this is better this way, less explicit. Why not to use explicit model if there is already one with the UNDEFIEND.
Undefiend could be renamed actually to "defaults" or such.