From 4a3b459881a45891e92b392ce800b8d7e7bc617b Mon Sep 17 00:00:00 2001 From: Krzysztof Rzymkowski Date: Sat, 22 Apr 2017 20:17:24 +0200 Subject: [PATCH] DATAJPA-1098 - Javadoc on Specification. Javadoc of Specification.toPredicate() now correctly states that it may return null. --- .../org/springframework/data/jpa/domain/Specification.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/springframework/data/jpa/domain/Specification.java b/src/main/java/org/springframework/data/jpa/domain/Specification.java index 39500da7d..2427c0830 100644 --- a/src/main/java/org/springframework/data/jpa/domain/Specification.java +++ b/src/main/java/org/springframework/data/jpa/domain/Specification.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2014 the original author or authors. + * Copyright 2008-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,6 +25,7 @@ import javax.persistence.criteria.Root; * * @author Oliver Gierke * @author Thomas Darimont + * @author Krzysztof Rzymkowski */ public interface Specification { @@ -34,7 +35,7 @@ public interface Specification { * * @param root * @param query - * @return a {@link Predicate}, must not be {@literal null}. + * @return a {@link Predicate}, may be {@literal null}. */ Predicate toPredicate(Root root, CriteriaQuery query, CriteriaBuilder cb); }