mirror of https://github.com/apache/openjpa.git
OPENJPA-1143 fix 2 build errors only flagged in Eclipse (was using Galileo and Sun JDK 6)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788381 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
44443b3ebd
commit
e72c186ef1
|
@ -1255,11 +1255,11 @@ public class FieldMetaData
|
|||
switch (getTypeCode()) {
|
||||
case JavaTypes.ARRAY:
|
||||
List l = JavaTypes.toList(val, _elem.getType(), true);
|
||||
Collections.sort(l, comp);
|
||||
Collections.sort(l, (Comparator<? super Order>) comp);
|
||||
return JavaTypes.toArray(l, _elem.getType());
|
||||
case JavaTypes.COLLECTION:
|
||||
if (val instanceof List)
|
||||
Collections.sort((List) val, comp);
|
||||
Collections.sort((List) val, (Comparator<? super Order>) comp);
|
||||
return val;
|
||||
default:
|
||||
throw new MetaDataException(_loc.get("cant-order", this));
|
||||
|
|
Loading…
Reference in New Issue