Early removal of 5.x-deprecated code

Closes gh-27686
This commit is contained in:
Juergen Hoeller
2021-11-18 09:18:06 +01:00
parent 17cdd97c37
commit 4750a9430c
132 changed files with 89 additions and 9216 deletions

View File

@@ -19,11 +19,8 @@ package org.springframework.transaction.reactive;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import org.springframework.lang.Nullable;
import org.springframework.util.StringUtils;
import org.springframework.util.function.SingletonSupplier;
/**
* Mutable transaction context that encapsulates transactional synchronizations and
@@ -41,8 +38,6 @@ public class TransactionContext {
private final @Nullable TransactionContext parent;
private final SingletonSupplier<UUID> contextId = SingletonSupplier.of(UUID::randomUUID);
private final Map<Object, Object> resources = new LinkedHashMap<>();
@Nullable
@@ -71,20 +66,6 @@ public class TransactionContext {
return this.parent;
}
@Deprecated
public String getName() {
String name = getCurrentTransactionName();
if (StringUtils.hasText(name)) {
return getContextId() + ": " + name;
}
return getContextId().toString();
}
@Deprecated
public UUID getContextId() {
return this.contextId.obtain();
}
public Map<Object, Object> getResources() {
return this.resources;
}