fix: use java7 compile
This commit is contained in:
parent
07f490a5d1
commit
a37ed90c80
@ -45,6 +45,7 @@ public class ConfigMergeCreator<C, T> {
|
||||
private final Class<T> targetClazz;
|
||||
|
||||
@SneakyThrows
|
||||
@SuppressWarnings("unchecked")
|
||||
public T create(C global, C item) {
|
||||
if (configClazz.equals(targetClazz) && global == null) {
|
||||
return (T) item;
|
||||
|
@ -221,7 +221,15 @@ public class ConnectionFactory {
|
||||
public static boolean hasSavepoint(String xid) {
|
||||
Map<String, List<SavePointHolder>> savePointMap = SAVEPOINT_CONNECTION_HOLDER.get();
|
||||
List<SavePointHolder> savePointHolders = savePointMap.get(xid);
|
||||
return !CollectionUtils.isEmpty(savePointHolders) && savePointHolders.stream().anyMatch(savePointHolder -> !CollectionUtils.isEmpty(savePointHolder.getSavePoints()));
|
||||
if (savePointHolders == null || savePointHolders.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
for (SavePointHolder savePointHolder : savePointHolders) {
|
||||
if (!CollectionUtils.isEmpty(savePointHolder.getSavePoints())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user