(Map<T, T> matches)
| 747 | } |
| 748 | |
| 749 | public static <T> void sanitizeMatches(Map<T, T> matches) { |
| 750 | Set<T> matched = Collections.newSetFromMap(new IdentityHashMap<>(matches.size())); |
| 751 | Set<T> conflictingMatches = Collections.newSetFromMap(new IdentityHashMap<>()); |
| 752 | |
| 753 | for (T cls : matches.values()) { |
| 754 | if (!matched.add(cls)) { |
| 755 | conflictingMatches.add(cls); |
| 756 | } |
| 757 | } |
| 758 | |
| 759 | if (!conflictingMatches.isEmpty()) { |
| 760 | matches.values().removeAll(conflictingMatches); |
| 761 | } |
| 762 | } |
| 763 | |
| 764 | public MatchingStatus getStatus(boolean inputsOnly) { |
| 765 | int totalClassCount = 0; |
no test coverage detected