-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow null value. boolean <-> Boolean error #605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| dockerCertPath; | ||
|
|
||
| private boolean dockerTlsVerify; | ||
| private Boolean dockerTlsVerify; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
either setter should use boolean. If null - then docker-java default.
|
@marcuslinke please review |
|
@KostyaSha LGTM! |
|
@KostyaSha Oh, a test is failing! Haven' seen this before. So it doesn't LGTM ;) |
Current coverage is 23.45%@@ master #605 diff @@
==========================================
Files 296 296
Lines 6255 6255
Methods 0 0
Messages 0 0
Branches 558 558
==========================================
Hits 1467 1467
Misses 4691 4691
Partials 97 97
|
|
@marcuslinke sorry, fixed |
|
|
||
| builder.withDockerTlsVerify("FALSE"); | ||
| assertThat(field.getBoolean(builder), is(false)); | ||
| assertThat((Boolean) field.get(builder), is(false)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, why not move setters directly into class, then getters would work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, don't get it...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
field is object, getBoolean() works only with primitive
Allow null value. boolean <-> Boolean error
This change is