This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +32
-4
lines changed
src/main/java/com/appirio/service/challengefeeder/api Expand file tree Collapse file tree 3 files changed +32
-4
lines changed Original file line number Diff line number Diff line change 10
10
import java .util .Date ;
11
11
import java .util .List ;
12
12
13
+ import org .apache .commons .lang3 .StringUtils ;
14
+
13
15
import lombok .Getter ;
14
16
import lombok .Setter ;
15
17
@@ -42,7 +44,6 @@ public abstract class DataScienceData {
42
44
* The status field.
43
45
*/
44
46
@ Getter
45
- @ Setter
46
47
private String status ;
47
48
48
49
/**
@@ -158,4 +159,11 @@ public abstract class DataScienceData {
158
159
@ Getter
159
160
@ Setter
160
161
private Long numberOfRegistrants ;
162
+
163
+ /**
164
+ * @param status the status to set
165
+ */
166
+ public void setStatus (String status ) {
167
+ this .status = StringUtils .trim (status );
168
+ }
161
169
}
Original file line number Diff line number Diff line change 5
5
6
6
import java .util .Date ;
7
7
8
+ import org .apache .commons .lang3 .StringUtils ;
9
+
8
10
import com .appirio .service .challengefeeder .helper .CustomDateDeserializer ;
9
11
import com .fasterxml .jackson .annotation .JsonFormat ;
10
12
import com .fasterxml .jackson .annotation .JsonIgnore ;
11
13
import com .fasterxml .jackson .databind .annotation .JsonDeserialize ;
14
+
12
15
import lombok .Getter ;
13
16
import lombok .Setter ;
14
17
@@ -43,7 +46,6 @@ public class PhaseData {
43
46
* The status field
44
47
*/
45
48
@ Getter
46
- @ Setter
47
49
private String status ;
48
50
49
51
/**
@@ -137,4 +139,14 @@ public class PhaseData {
137
139
@ Getter
138
140
@ Setter
139
141
private String updatedBy ;
142
+
143
+ /**
144
+ * Remove the whitespace from both ends and assign the value
145
+ *
146
+ * @param status
147
+ * the status to set
148
+ */
149
+ public void setStatus (String status ) {
150
+ this .status = StringUtils .trim (status );
151
+ }
140
152
}
Original file line number Diff line number Diff line change 7
7
import java .util .List ;
8
8
import java .util .Set ;
9
9
10
+ import org .apache .commons .lang3 .StringUtils ;
11
+
10
12
import com .appirio .service .challengefeeder .api .FileTypeData ;
11
13
import com .appirio .service .challengefeeder .api .IdentifiableData ;
12
14
import com .appirio .service .challengefeeder .api .PhaseData ;
@@ -71,7 +73,6 @@ public class ChallengeListingData extends IdentifiableData {
71
73
* The status field
72
74
*/
73
75
@ Getter
74
- @ Setter
75
76
private String status ;
76
77
77
78
/**
@@ -447,7 +448,7 @@ public class ChallengeListingData extends IdentifiableData {
447
448
* @param track
448
449
*/
449
450
public void setTrack (String track ) {
450
- this .track = track .trim ();
451
+ this .track = StringUtils .trim (track );
451
452
}
452
453
453
454
/**
@@ -472,4 +473,11 @@ public void setSubTrack(String subTrack) {
472
473
public void setSubTrackFromEnum (SubTrack subTrackE ) {
473
474
this .subTrack = subTrackE .toString ();
474
475
}
476
+
477
+ /**
478
+ * @param status the status to set
479
+ */
480
+ public void setStatus (String status ) {
481
+ this .status = StringUtils .trim (status );
482
+ }
475
483
}
You can’t perform that action at this time.
0 commit comments