HHH-14761 Exception message String.format too many variables

Fix https://hibernate.atlassian.net/browse/HHH-14761
This commit is contained in:
boris-unckel 2021-07-29 08:33:29 +02:00 committed by Sanne Grinovero
parent e82a45d616
commit 78e620d9fe
1 changed files with 1 additions and 1 deletions

View File

@ -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()