Avoid memory leak when PropertyComparator is reused
This commit fixes a potential memory leak, since PropertyComparator
previously kept an indirect reference to the value it last compared.
Closes gh-26869
pull/26905/head
Florian Kirmaier5 years agocommitted bySam Brannen
@ -44,8 +44,6 @@ public class PropertyComparator<T> implements Comparator<T> {
@@ -44,8 +44,6 @@ public class PropertyComparator<T> implements Comparator<T> {
@ -115,8 +113,9 @@ public class PropertyComparator<T> implements Comparator<T> {
@@ -115,8 +113,9 @@ public class PropertyComparator<T> implements Comparator<T> {
// (similar to JSTL EL). If the property doesn't exist in the