From 78e620d9fe59e676e43418201142137691bbc2dc Mon Sep 17 00:00:00 2001 From: boris-unckel Date: Thu, 29 Jul 2021 08:33:29 +0200 Subject: [PATCH] HHH-14761 Exception message String.format too many variables Fix https://hibernate.atlassian.net/browse/HHH-14761 --- .../java/org/hibernate/cfg/annotations/CollectionBinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/annotations/CollectionBinder.java b/hibernate-core/src/main/java/org/hibernate/cfg/annotations/CollectionBinder.java index 1e0b4510a8..d5d736337b 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/annotations/CollectionBinder.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/annotations/CollectionBinder.java @@ -669,7 +669,7 @@ public abstract class CollectionBinder { private AnnotationException buildIllegalSortCombination() { return new AnnotationException( String.format( - "Illegal combination of annotations on %s. Only one of @%s, @%s and @%s can be used", + "Illegal combination of annotations on %s. Only one of @%s and @%s can be used", safeCollectionRole(), SortNatural.class.getName(), SortComparator.class.getName()