final String columnName = expression.getName();
if (exprNames.add(columnName) == false)
{
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
Messages.getString("DuplicateFieldInspection.ExpressionDuplicate", columnName),
new LocationInfo(reportDefinition)));
warnedNames.add(columnName);
}
}
final HashSet<String> cols = new HashSet<String>();
for (int i = 0; i < columnNames.length; i++)
{
final String columnName = columnNames[i];
if (warnedNames.contains(columnName) == false && cols.add(columnName) == false)
{
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
Messages.getString("DuplicateFieldInspection.OtherDuplicate", columnName),
new LocationInfo(reportDefinition)));
}
}
}