This is an automated email from the ASF dual-hosted git repository.
doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git
The following commit(s) were added to refs/heads/master by this push:
new c5e0e3e EMPIREDB-304 small fix for parameter
c5e0e3e is described below
commit c5e0e3e5f7dfa4e702ea2b2755152785d2f81c25
Author: Rainer Döbele <[email protected]>
AuthorDate: Thu Feb 6 13:40:30 2020 +0100
EMPIREDB-304
small fix for parameter
---
empire-db/src/main/java/org/apache/empire/db/DBColumnExpr.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/empire-db/src/main/java/org/apache/empire/db/DBColumnExpr.java
b/empire-db/src/main/java/org/apache/empire/db/DBColumnExpr.java
index d02ffe1..fd78c4c 100644
--- a/empire-db/src/main/java/org/apache/empire/db/DBColumnExpr.java
+++ b/empire-db/src/main/java/org/apache/empire/db/DBColumnExpr.java
@@ -1085,7 +1085,7 @@ public abstract class DBColumnExpr extends DBExpr
* @param otherwise the varchar value to take if no key matches the given
expression
* @return a DBDecodeExpr object
*/
- public DBColumnExpr decodeEnum(Class<Enum<?>> enumType, String otherwise)
+ public DBColumnExpr decodeEnum(Class<? extends Enum<?>> enumType, String
otherwise)
{
if (enumType==null || !enumType.isEnum())
throw new InvalidArgumentException("enumType", enumType);
@@ -1111,7 +1111,7 @@ public abstract class DBColumnExpr extends DBExpr
* @param defaultToEnd true if non matching values (e.g. NULL) should be
assigned the highest number, otherwise they get the lowest number
* @return a DBDecodeExpr object
*/
- public DBColumnExpr decodeSort(Class<Enum<?>> enumType, boolean
defaultToEnd)
+ public DBColumnExpr decodeSort(Class<? extends Enum<?>> enumType, boolean
defaultToEnd)
{
if (enumType==null || !enumType.isEnum())
throw new InvalidArgumentException("enumType", enumType);