diff --git a/src/repairnator-pipeline/src/main/java/fr/inria/spirals/repairnator/process/testinformation/BugType.java b/src/repairnator-pipeline/src/main/java/fr/inria/spirals/repairnator/process/testinformation/BugType.java index ca051d666..6df8da666 100644 --- a/src/repairnator-pipeline/src/main/java/fr/inria/spirals/repairnator/process/testinformation/BugType.java +++ b/src/repairnator-pipeline/src/main/java/fr/inria/spirals/repairnator/process/testinformation/BugType.java @@ -32,7 +32,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; BugType bugType = (BugType) o; return name.equals(bugType.name) && - detail.replace("\n\t", " ").equals(bugType.detail.replace("\n\t", " ")); + detail.replaceAll("\\s+", "") + .equals(bugType.detail.replaceAll("\\s+", "")); } @Override