Skip to content

Commit 2fc049c

Browse files
committed
Removed throw Exception code that does not occur
Signed-off-by: ChanHyeongLee <[email protected]>
1 parent 4b083ea commit 2fc049c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/JpaQueryLookupStrategy.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ public static QueryLookupStrategy create(EntityManager em, JpaQueryMethodFactory
312312
case CREATE_IF_NOT_FOUND -> new CreateIfNotFoundQueryLookupStrategy(em, queryMethodFactory,
313313
new CreateQueryLookupStrategy(em, queryMethodFactory, configuration),
314314
new DeclaredQueryLookupStrategy(em, queryMethodFactory, configuration), configuration);
315-
default -> throw new IllegalArgumentException(String.format("Unsupported query lookup strategy %s", key));
316315
};
317316
}
318317

0 commit comments

Comments
 (0)