WarehouseCacheManager use of longValue method.
This commit is contained in:
		@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -57,7 +57,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : _cachedWh.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > _cacheTime)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > _cacheTime)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -57,7 +57,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : _cachedWh.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > _cacheTime)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > _cacheTime)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ public class WarehouseCacheManager
 | 
			
		||||
			final long cTime = System.currentTimeMillis();
 | 
			
		||||
			for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
 | 
			
		||||
			{
 | 
			
		||||
				if ((cTime - entry.getValue()) > CACHE_TIME)
 | 
			
		||||
				if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
 | 
			
		||||
				{
 | 
			
		||||
					final PlayerInstance player = entry.getKey();
 | 
			
		||||
					player.clearWarehouse();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user