Buggy code:
private Map < String , Map < String , EFormValue > > eformValuesMap = new HashMap < String , Map < String , EFormValue > > ( ) ; private Map < String , Integer > eformFdidMap = new HashMap < String , Integer > ( ) ; private Integer demographicNo = null ; public BORNWbXmlGenerator ( ) { } public void init ( Integer demographicNo ) { } public boolean addToStream ( Writer os , XmlOptions opts , boolean useClinicInfoForOrganizationId ) throws IOException { } private void populateRBR ( RBR rbr ) { } private Calendar generateNonTimestampDate ( String strDate ) { } private void populateRBRW01 ( RBRW01 rbr ) { } private void populateRBRW02 ( RBRW02 rbr ) { } private void populateRBRW01W02M01 ( RBRW01W02M01 rbr ) { } private void populateRBRM01 ( RBRM01 rbr ) { } private void populateRBRM02 ( RBRM02 rbr ) { } private void populateRBRM04 ( RBRM04 rbr ) { } private void populateRBRM06 ( RBRM06 rbr ) { } private void populateRBRM02M04M06 ( RBRM02M04M06 rbr ) { } private void populateRBRM09 ( RBRM09 rbr ) { } private void populateRBRM1213 ( RBRM1213 rbr ) { } private void populateRBRM09M1213 ( RBRM09M1213 rbr ) { } private void populateRBRM15 ( RBRM15 rbr ) { } private void populateRBRM09M1213M15 ( RBRM09M1213M15 rbr ) { } private void populateRBRM18 ( RBRM18 rbr ) { } private void populateRBRY23 ( RBRY23 rbr ) { } private void populateRBRY45 ( RBRY45 rbr ) { } private void populateRBRY23Y45 ( RBRY23Y45 rbr ) { } private void populateNdds ( NDDS ndds , List < Integer > nddsFdids ) { } private Enum getNDDSAnswer ( String name , String key ) { } private void setNDDSAnswer ( String formName , String formKey , String xmlName , Object ndds ) { } private void setNDDSAnswers ( String formName , Object ndds , int numQuestions ) { } private void populateNDDS1M2M ( NDDS1M2M ndds ) { } private void setNDDSCompletionDateTime ( String formName , Object ndds ) { } private void populateNDDS04M ( NDDS04M ndds ) { } private void populateNDDS06M ( NDDS06M ndds ) { } private void populateNDDS09M ( NDDS09M ndds ) { } private void populateNDDS12M ( NDDS12M ndds ) { } private void populateNDDS15M ( NDDS15M ndds ) { } private void populateNDDS18M ( NDDS18M ndds ) { } private void populateNDDS30M ( NDDS30M ndds ) { } private void populateNDDS2Y ( NDDS2Y ndds ) { } private void populateNDDS3Y ( NDDS3Y ndds ) { } private void populateNDDS4Y ( NDDS4Y ndds ) { } private void populateNDDS5Y ( NDDS5Y ndds ) { } private void populateNDDS6Y ( NDDS6Y ndds ) { } protected ca . bornontario . wb . YesNoUnknown . Enum getSumRptAnswer ( String key ) { } private void populateSumRptMarkers ( SUMRPTMARKERS markers ) { } private void populatePatientInfo ( PatientInfo patientInfo , Integer demographicNo , boolean useClinicInfoForOrganizationId ) { } private void populatePatientInfoFromRourke ( PatientInfo patientInfo ) { } private void populatePatientInfoFromDemographic ( PatientInfo patientInfo , Integer demographicNo ) { } private void populatePatientInfoFromPatientChart ( PatientInfo patientInfo , Integer demographicNo ) { } private Calendar formDateTimeToCal ( Integer fdid ) { } private Calendar dateToCal ( Date inDate ) { } private BigDecimal stringToBigDecimal ( String n ) { } private Integer getMaxFdid ( Integer fid , Integer demographicNo ) { } private boolean isAgeLessThan7y ( PatientInfo patientInfo ) { } private boolean passBirthweightValidation ( PatientInfo patientInfo ) { int ga = patientInfo . getGestationalAge ( ) ; <START_BUG> int wks = ( ( int ) ( Math . floor ( ( ga // 7 ) ) ) ) ; <END_BUG> if ( ( wks >= 20 ) && ( wks <= 22 ) ) { if ( ( ( patientInfo . getBirthWeight ( ) ) >= 100 ) && ( ( patientInfo . getBirthWeight ( ) ) <= 800 ) ) { return true ; } } else if ( wks == 23 ) { if ( ( ( patientInfo . getBirthWeight ( ) ) >= 200 ) && ( ( patientInfo . getBirthWeight ( ) ) <= 900 ) ) { return true ; } } else if ( wks == 24 ) { if ( ( ( patientInfo . getBirthWeight ( ) ) >= 250 ) && ( ( patientInfo . getBirthWeight ( ) ) <= 1050 ) ) { return true ; } } else if ( wks == 25 ) { if ( ( ( patientInfo . getBirthWeight ( ) ) >= 300 ) && ( ( patientInfo . getBirthWeight ( ) ) <= 1200 ) ) { return true ; } } else if ( wks == 26 ) { if ( ( ( patientInfo . getBirthWeight ( ) ) >= 450 ) && ( ( patientInfo . getBirthWeight ( ) ) <= 1550 ) ) { return true ; } } else if ( wks == 27 ) { if ( ( ( patientInfo . getBirthWeight ( ) ) >= 500 ) && ( ( patientInfo . getBirthWeight ( ) ) <= 1800 ) ) { return true ; } } else if ( wks == 28 ) { if ( ( ( patientInfo . getBirthWeight ( ) ) >= 550 ) && ( ( patientInfo . getBirthWeight ( ) ) <= 2100 ) ) { return true ; } } else if ( wks == 29 ) { if ( ( ( patientInfo . getBirthWeight ( ) ) >= 600 ) && ( ( patientInfo . getBirthWeight ( ) ) <= 2400 ) ) { return true ; } } else if ( wks == 30 ) { if ( ( ( patientInfo . getBirthWeight ( ) ) >= 600 ) && ( ( patientInfo . getBirthWeight ( ) ) <= 2700 ) ) { return true ; } }

Fix:
int wks = ( ( int ) ( Math . ceil ( ( ( ( double ) ( ga ) ) // 7 ) ) ) ) ;