Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gayathri authored and blackcathacker committed Apr 18, 2015
1 parent 4b2e140 commit 869aef0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public abstract class NSFCoverPageBaseGenerator extends S2SBaseFormGenerator {
protected static final int QUESTION_EARLY_CONCEPT_GRANT = 4;
protected static final int QUESTION_RAPIDRESPONSE_GRANT = 3;
protected static final int QUESTION_ACCOMPLISHMENT_RENEWAL = 5;
protected static final int FUNDING_MECHANISM_QUESTION = 9;
protected static final int FUNDING_MECHANISM_QUESTION = 10;
protected static final int QUESTION_RESOLUTION_GRAPHICS = 6;

protected static final int SINGLE_COPY_DOCUMENT = 87;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,10 @@ private NSFCoverPage16Document getNSFCoverPage16() {



private void setFundingOpportunityNumber(NSFCoverPage16 nsfCoverPage16) {
if (pdDoc.getDevelopmentProposal().getProgramAnnouncementNumber() != null) {
if (pdDoc.getDevelopmentProposal().getProgramAnnouncementNumber()
.length() > PROGRAM_ANNOUNCEMENT_NUMBER_MAX_LENGTH) {
nsfCoverPage16.setFundingOpportunityNumber(pdDoc
.getDevelopmentProposal()
.getProgramAnnouncementNumber().substring(0,
PROGRAM_ANNOUNCEMENT_NUMBER_MAX_LENGTH));
} else {
nsfCoverPage16.setFundingOpportunityNumber(pdDoc
.getDevelopmentProposal()
.getProgramAnnouncementNumber());
}
}
protected void setFundingOpportunityNumber(NSFCoverPage16 nsfCoverPage16) {
nsfCoverPage16.setFundingOpportunityNumber(StringUtils.substring(pdDoc
.getDevelopmentProposal()
.getProgramAnnouncementNumber(), 0, PROGRAM_ANNOUNCEMENT_NUMBER_MAX_LENGTH));
}

/**
Expand Down

0 comments on commit 869aef0

Please sign in to comment.