fix warning "mac file equals"

This commit is contained in:
Vladimir Krivosheev
2013-11-08 16:43:33 +01:00
parent 19576b2a23
commit 72ee12cf41
@@ -155,7 +155,7 @@ public class ChooseComponentsToExportDialog extends DialogWrapper {
for (final ExportableComponent tiedComponent : tiedComponents) {
if (tiedComponent == component) continue;
final ComponentElementProperties elementProperties = componentToContainingListElement.get(tiedComponent);
if (elementProperties != null && !exportFile.equals(file)) {
if (elementProperties != null && !FileUtil.filesEqual(exportFile, file)) {
LOG.assertTrue(file == null, "Component " + component + " serialize itself into " + file + " and " + exportFile);
// found
elementProperties.addComponent(component);