This is an automated email from the ASF dual-hosted git repository. mbo pushed a commit to branch JDO-777 in repository https://gitbox.apache.org/repos/asf/db-jdo.git
The following commit(s) were added to refs/heads/JDO-777 by this push: new 91989c4 JDO-777: added @SuppressWarnings(unchecked) in default implementation 91989c4 is described below commit 91989c4cd7cb5efc00c836d3e9dcca15096b8587 Author: Michael Bouschen <m...@apache.org> AuthorDate: Tue Feb 19 20:46:31 2019 +0100 JDO-777: added @SuppressWarnings(unchecked) in default implementation --- api/src/main/java/javax/jdo/JDOQLTypedQuery.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/main/java/javax/jdo/JDOQLTypedQuery.java b/api/src/main/java/javax/jdo/JDOQLTypedQuery.java index 12aaec8..da04f38 100644 --- a/api/src/main/java/javax/jdo/JDOQLTypedQuery.java +++ b/api/src/main/java/javax/jdo/JDOQLTypedQuery.java @@ -96,6 +96,7 @@ public interface JDOQLTypedQuery<T> extends Serializable, Closeable { * @param <N> Type for the numeric parameter * @return NumericExpression for the parameter */ + @SuppressWarnings("unchecked") default <N> NumericExpression<N> numericParameter(String name, Class<N> type) { return (NumericExpression<N>)numericParameter(name); } @@ -136,6 +137,7 @@ public interface JDOQLTypedQuery<T> extends Serializable, Closeable { * @param <E> Element type for the collection parameter * @return Expression for the parameter */ + @SuppressWarnings("unchecked") default <E> CollectionExpression<Collection<E>, E> collectionParameter(String name, Class<E> elementType) { return (CollectionExpression<Collection<E>, E>)collectionParameter(name); } @@ -156,6 +158,7 @@ public interface JDOQLTypedQuery<T> extends Serializable, Closeable { * @param <V> Value type for the map parameter * @return Expression for the parameter */ + @SuppressWarnings("unchecked") default <K,V> MapExpression<Map<K,V>, K, V> mapParameter(String name, Class<K> keyType, Class<V> valueType) { return (MapExpression<Map<K,V>, K, V>)mapParameter(name); } @@ -174,6 +177,7 @@ public interface JDOQLTypedQuery<T> extends Serializable, Closeable { * @param <E> Element type for the list parameter * @return */ + @SuppressWarnings("unchecked") default <E> ListExpression<List<E>, E> listParameter(String name, Class<E> elementType) { return (ListExpression<List<E>, E>)listParameter(name); }