Skip to content

Commit

Permalink
Merge pull request kiegroup#19 from fjtirado/partial_revert
Browse files Browse the repository at this point in the history
Reverting two unneded commits
  • Loading branch information
fjtirado authored Nov 8, 2023
2 parents 934f572 + 682ab06 commit a7cb32c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package org.drools.persistence.api;

import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.SortedSet;
Expand Down Expand Up @@ -62,7 +61,10 @@ public static void removeFromUpdatableSet(TransactionManager txm, Transformable
public static Set<Transformable> getUpdateableSet(TransactionManager txm) {
Set<Transformable> result = (Set<Transformable>) txm.getResource(APP_UPDETEABLE_RESOURCE);
if (result != null) {
SortedSet<Transformable> sorted = new TreeSet<>(Comparator.comparing(o -> o.getClass().getSimpleName()));
SortedSet<Transformable> sorted = new TreeSet<>((o1, o2) -> {
int compared = o1.getClass().getSimpleName().compareTo(o2.getClass().getSimpleName());
return compared == 0 ? 1 : compared;
});
sorted.addAll(result);
return sorted;
}
Expand Down

0 comments on commit a7cb32c

Please sign in to comment.