Skip to content
This repository was archived by the owner on Jun 9, 2021. It is now read-only.

Commit 857b440

Browse files
committed
Using boolean for defaultValue in ButtonFormElementOption #178
1 parent 4441583 commit 857b440

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,19 @@
33
Changelog of Pull Request Notifier for Bitbucket.
44

55
## Unreleased
6+
### GitHub [#178](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/issues/178) Forms with checkboxes that have a default value of false do not work
7+
Using boolean for defaultValue in ButtonFormElementOption
8+
9+
[edbe86ab15b83f0](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/edbe86ab15b83f0) Tomas Bjerre *2017-01-03 08:06:27*
10+
611
### No issue
12+
fixed jenkins plugin url
13+
14+
[6fafc078851d1e4](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/6fafc078851d1e4) Rishabh Tayal *2016-12-28 17:45:34*
15+
716
Doc
817

9-
[68eeb5d1bdfc508](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/68eeb5d1bdfc508) Tomas Bjerre *2016-12-27 10:42:37*
18+
[aef9959f68fa4e4](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/aef9959f68fa4e4) Tomas Bjerre *2016-12-27 10:42:56*
1019

1120
## 2.45
1221
### GitHub [#173](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/pull/173) Add the ability to specify forms for buttons

src/main/java/se/bjurr/prnfb/presentation/dto/ButtonFormElementOptionDTO.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
public class ButtonFormElementOptionDTO {
1212
private String label;
1313
private String name;
14-
private String defaultValue;
14+
private Boolean defaultValue;
1515

16-
public void setDefaultValue(String defaultValue) {
16+
public void setDefaultValue(Boolean defaultValue) {
1717
this.defaultValue = defaultValue;
1818
}
1919

@@ -25,7 +25,7 @@ public void setName(String name) {
2525
this.name = name;
2626
}
2727

28-
public String getDefaultValue() {
28+
public Boolean getDefaultValue() {
2929
return defaultValue;
3030
}
3131

src/main/java/se/bjurr/prnfb/settings/PrnfbButtonFormElementOption.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
package se.bjurr.prnfb.settings;
22

33
import static com.google.common.base.Preconditions.checkNotNull;
4-
import static com.google.common.base.Strings.emptyToNull;
54

65
public class PrnfbButtonFormElementOption {
76
private final String label;
87
private final String name;
9-
private final String defaultValue;
8+
private final Boolean defaultValue;
109

11-
public PrnfbButtonFormElementOption(String label, String name, String defaultValue) {
10+
public PrnfbButtonFormElementOption(String label, String name, Boolean defaultValue) {
1211
this.label = checkNotNull(label, "label");
1312
this.name = checkNotNull(name, "name");
14-
this.defaultValue = emptyToNull(defaultValue);
13+
this.defaultValue = defaultValue;
1514
}
1615

17-
public String getDefaultValue() {
16+
public Boolean getDefaultValue() {
1817
return defaultValue;
1918
}
2019

0 commit comments

Comments
 (0)