Skip to content

Commit

Permalink
IGNITE-20112 IgniteTxImplicitSingleStateImpl initial cleanup (#10867)
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vinogradov authored Aug 4, 2023
1 parent c85580a commit e7b0b8e
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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} */
Expand All @@ -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} */
Expand All @@ -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} */
Expand Down

0 comments on commit e7b0b8e

Please sign in to comment.