}
// Add some useful information as comments
// Source file name
SourceFileAttribute sfA = cfA.getAttributes().getSourceFileAttribute();
SourceFileAttribute sfB = cfB.getAttributes().getSourceFileAttribute();
if (sfA == null && sfB == null) {
// Add nothing, neither has a source file attribute
} else if (sfA == null || sfB == null) {
// Only one has a source file attribute
if (sfA != null) {
ClassCommentRow sfComment = new ClassCommentRow("SourceFile = " + sfA.getSourceFile());
this.rowsA.add(sfComment);
this.rowsAll.add(sfComment);
}
if (sfB != null) {
ClassCommentRow sfComment = new ClassCommentRow("SourceFile = " + sfB.getSourceFile());
this.rowsB.add(sfComment);
this.rowsAll.add(sfComment);
}
} else {
// Both have source file attributes
if (sfA.getSourceFile().equals(sfB.getSourceFile())) {
ClassCommentRow sfComment = new ClassCommentRow("SourceFile = " + sfA.getSourceFile());
this.rowsAll.add(sfComment);
} else {
ClassCommentRow sfCommentA = new ClassCommentRow("SourceFile = " + sfA.getSourceFile());
this.rowsA.add(sfCommentA);
this.rowsAll.add(sfCommentA);
ClassCommentRow sfCommentB = new ClassCommentRow("SourceFile = " + sfB.getSourceFile());
this.rowsB.add(sfCommentB);
this.rowsAll.add(sfCommentB);
}
}