use isEmpty()

pull/2179/head
Zhelyazko Chobantonov 6 years ago
parent 22c1332e29
commit 442d00b180

@ -382,7 +382,7 @@ public class RedissonSessionManager extends ManagerBase implements Lifecycle {
synchronized (pipeline) {
contextInUse.remove(((Context) getContainer()).getName());
//remove valves when all of the RedissonSessionManagers (web apps) are not in use anymore
if (contextInUse.size() == 0) {
if (contextInUse.isEmpty()) {
if (updateValve != null) {
pipeline.removeValve(updateValve);
updateValve = null;

@ -367,7 +367,7 @@ public class RedissonSessionManager extends ManagerBase {
synchronized (pipeline) {
contextInUse.remove(((Context) getContainer()).getName());
//remove valves when all of the RedissonSessionManagers (web apps) are not in use anymore
if (contextInUse.size() == 0) {
if (contextInUse.isEmpty()) {
if (updateValve != null) {
pipeline.removeValve(updateValve);
updateValve = null;

@ -365,7 +365,7 @@ public class RedissonSessionManager extends ManagerBase {
synchronized (pipeline) {
contextInUse.remove(getContext().getName());
//remove valves when all of the RedissonSessionManagers (web apps) are not in use anymore
if (contextInUse.size() == 0) {
if (contextInUse.isEmpty()) {
if (updateValve != null) {
pipeline.removeValve(updateValve);
updateValve = null;

@ -365,7 +365,7 @@ public class RedissonSessionManager extends ManagerBase {
synchronized (pipeline) {
contextInUse.remove(getContext().getName());
//remove valves when all of the RedissonSessionManagers (web apps) are not in use anymore
if (contextInUse.size() == 0) {
if (contextInUse.isEmpty()) {
if (updateValve != null) {
pipeline.removeValve(updateValve);
updateValve = null;

Loading…
Cancel
Save