This is an automated email from the ASF dual-hosted git repository.
av pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new e7b0b8e5a17 IGNITE-20112 IgniteTxImplicitSingleStateImpl initial
cleanup (#10867)
e7b0b8e5a17 is described below
commit e7b0b8e5a170c1d295358010fd27e33fa7e626e1
Author: Anton Vinogradov <[email protected]>
AuthorDate: Fri Aug 4 11:55:29 2023 +0300
IGNITE-20112 IgniteTxImplicitSingleStateImpl initial cleanup (#10867)
---
.../cache/transactions/IgniteTxImplicitSingleStateImpl.java | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxImplicitSingleStateImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxImplicitSingleStateImpl.java
index 62411380e3f..ba02c928ed2 100644
---
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxImplicitSingleStateImpl.java
+++
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxImplicitSingleStateImpl.java
@@ -63,8 +63,7 @@ public class IgniteTxImplicitSingleStateImpl extends
IgniteTxLocalStateAdapter {
private volatile boolean useMvccCaching;
/** {@inheritDoc} */
- @Override public void addActiveCache(GridCacheContext ctx, boolean
recovery, IgniteTxAdapter tx)
- throws IgniteCheckedException {
+ @Override public void addActiveCache(GridCacheContext ctx, boolean
recovery, IgniteTxAdapter tx) {
assert cacheCtx == null : "Cache already set [cur=" + cacheCtx.name()
+ ", new=" + ctx.name() + ']';
assert tx.local();
@@ -245,12 +244,12 @@ public class IgniteTxImplicitSingleStateImpl extends
IgniteTxLocalStateAdapter {
return set;
}
else
- return Collections.<IgniteTxKey>emptySet();
+ return Collections.emptySet();
}
/** {@inheritDoc} */
@Override public Collection<IgniteTxEntry> writeEntries() {
- return entry != null ? entry : Collections.<IgniteTxEntry>emptyList();
+ return entry != null ? entry : Collections.emptyList();
}
/** {@inheritDoc} */
@@ -261,7 +260,7 @@ public class IgniteTxImplicitSingleStateImpl extends
IgniteTxLocalStateAdapter {
/** {@inheritDoc} */
@Override public Map<IgniteTxKey, IgniteTxEntry> writeMap() {
return entry != null ? F.asMap(entry.get(0).txKey(), entry.get(0)) :
- Collections.<IgniteTxKey, IgniteTxEntry>emptyMap();
+ Collections.emptyMap();
}
/** {@inheritDoc} */
@@ -276,7 +275,7 @@ public class IgniteTxImplicitSingleStateImpl extends
IgniteTxLocalStateAdapter {
/** {@inheritDoc} */
@Override public Collection<IgniteTxEntry> allEntries() {
- return entry != null ? entry : Collections.<IgniteTxEntry>emptyList();
+ return entry != null ? entry : Collections.emptyList();
}
/** {@inheritDoc} */