Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Fix for issue#389 #75

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import lombok.Getter;
import lombok.Setter;

Expand Down Expand Up @@ -42,7 +44,6 @@ public abstract class DataScienceData {
* The status field.
*/
@Getter
@Setter
private String status;

/**
Expand Down Expand Up @@ -158,4 +159,11 @@ public abstract class DataScienceData {
@Getter
@Setter
private Long numberOfRegistrants;

/**
* @param status the status to set
*/
public void setStatus(String status) {
this.status = StringUtils.trim(status);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@

import java.util.Date;

import org.apache.commons.lang3.StringUtils;

import com.appirio.service.challengefeeder.helper.CustomDateDeserializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

import lombok.Getter;
import lombok.Setter;

Expand Down Expand Up @@ -43,7 +46,6 @@ public class PhaseData {
* The status field
*/
@Getter
@Setter
private String status;

/**
Expand Down Expand Up @@ -137,4 +139,14 @@ public class PhaseData {
@Getter
@Setter
private String updatedBy;

/**
* Remove the whitespace from both ends and assign the value
*
* @param status
* the status to set
*/
public void setStatus(String status) {
this.status = StringUtils.trim(status);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import java.util.List;
import java.util.Set;

import org.apache.commons.lang3.StringUtils;

import com.appirio.service.challengefeeder.api.FileTypeData;
import com.appirio.service.challengefeeder.api.IdentifiableData;
import com.appirio.service.challengefeeder.api.PhaseData;
Expand Down Expand Up @@ -71,7 +73,6 @@ public class ChallengeListingData extends IdentifiableData {
* The status field
*/
@Getter
@Setter
private String status;

/**
Expand Down Expand Up @@ -447,7 +448,7 @@ public class ChallengeListingData extends IdentifiableData {
* @param track
*/
public void setTrack(String track) {
this.track = track.trim();
this.track = StringUtils.trim(track);
}

/**
Expand All @@ -472,4 +473,11 @@ public void setSubTrack(String subTrack) {
public void setSubTrackFromEnum(SubTrack subTrackE) {
this.subTrack = subTrackE.toString();
}

/**
* @param status the status to set
*/
public void setStatus(String status) {
this.status = StringUtils.trim(status);
}
}