diff --git a/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/util/Caches.java b/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/util/Caches.java index f92e848f4e..cc3211f8d7 100644 --- a/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/util/Caches.java +++ b/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/util/Caches.java @@ -319,6 +319,11 @@ public class Caches { public Object next() { return entryIterator.next().getKey(); } + + @Override + public void remove() { + throw new UnsupportedOperationException( "remove() not supported" ); + } }; }