@@ -88,6 +88,7 @@ private void printOffending(String originalEntry, String doubleEntry) {
88
88
SurveyData second = this .s .getParticipantData (doubleEntry );
89
89
90
90
int maxReach = Math .max (first .internalLength (), second .internalLength ());
91
+ maxReach = Math .min (maxReach , this .s .getHeaderColumnLength ()); // hotfix out of bounds, caused by relevantColumns
91
92
92
93
String origPrint = "ID- " + originalEntry + ": " ;
93
94
String doubPrint = "ID- " + doubleEntry + ": " ;
@@ -120,15 +121,16 @@ private void printOffending(String originalEntry, String doubleEntry) {
120
121
if (this .saveOption == 0 ) {
121
122
this .results .append (originalEntry + this .delim .getSaveSeparator () + doubleEntry + this .delim .getSaveSeparator () + this .s .getHeaderColumn (i ) + this .delim .getSaveSeparator () + i + this .delim .getSaveSeparator () + firstValue + this .delim .getSaveSeparator () + secondValue );
122
123
} else if (this .saveOption == 1 ) {
123
- comparisonData .append ("MISMATCH" + this .delim .getSaveSeparator ());
124
+ comparisonData .append ("!= " + secondValue + this .delim .getSaveSeparator ());
124
125
}
125
126
}
126
127
}
127
128
if (this .saveOption == 1 ) {
128
129
if (!foundMismatch && i != this .idKey ) {
129
- comparisonData .append ("SAME" + this .delim .getSaveSeparator ());
130
+ String nothingFound = secondValue ; // placeholder
131
+ comparisonData .append (nothingFound + this .delim .getSaveSeparator ());
130
132
} else if (i == this .idKey ) {
131
- comparisonData .append ("COMPARISON_ " + firstValue + this .delim .getSaveSeparator ());
133
+ comparisonData .append ("X_ " + firstValue + this .delim .getSaveSeparator ());
132
134
}
133
135
this .results .append (firstValue + this .delim .getSaveSeparator ());
134
136
}
0 commit comments