You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tv...@apache.org on 2014/04/07 21:43:37 UTC
svn commit: r1585573 - in
/commons/proper/jcs/trunk/src/java/org/apache/commons/jcs:
auxiliary/lateral/socket/tcp/ engine/ engine/control/ engine/control/event/
engine/memory/lru/ utils/discovery/
Author: tv
Date: Mon Apr 7 19:43:36 2014
New Revision: 1585573
URL: http://svn.apache.org/r1585573
Log:
Remove some of the "synthetic access" warnings
Modified:
commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/auxiliary/lateral/socket/tcp/LateralTCPListener.java
commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/AbstractCacheEventQueue.java
commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/CacheEventQueue.java
commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/control/CompositeCacheManager.java
commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/control/event/ElementEventQueue.java
commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/memory/lru/LHMLRUMemoryCache.java
commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/utils/discovery/UDPDiscoveryReceiver.java
Modified: commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/auxiliary/lateral/socket/tcp/LateralTCPListener.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/auxiliary/lateral/socket/tcp/LateralTCPListener.java?rev=1585573&r1=1585572&r2=1585573&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/auxiliary/lateral/socket/tcp/LateralTCPListener.java (original)
+++ commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/auxiliary/lateral/socket/tcp/LateralTCPListener.java Mon Apr 7 19:43:36 2014
@@ -498,6 +498,7 @@ public class LateralTCPListener<K extend
}
/** Main processing method for the ListenerThread object */
+ @SuppressWarnings("synthetic-access")
@Override
public void run()
{
@@ -592,7 +593,8 @@ public class LateralTCPListener<K extend
* Main processing method for the LateralTCPReceiverConnection object
*/
@Override
- @SuppressWarnings("unchecked") // Need to cast from Object
+ @SuppressWarnings({"unchecked", // Need to cast from Object
+ "synthetic-access" })
public void run()
{
ObjectInputStream ois;
@@ -667,6 +669,7 @@ public class LateralTCPListener<K extend
* @param led
* @throws IOException
*/
+ @SuppressWarnings("synthetic-access")
private void handle( LateralElementDescriptor<K, V> led )
throws IOException
{
Modified: commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/AbstractCacheEventQueue.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/AbstractCacheEventQueue.java?rev=1585573&r1=1585572&r2=1585573&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/AbstractCacheEventQueue.java (original)
+++ commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/AbstractCacheEventQueue.java Mon Apr 7 19:43:36 2014
@@ -261,6 +261,7 @@ public abstract class AbstractCacheEvent
/**
* Main processing method for the AbstractCacheEvent object
*/
+ @SuppressWarnings("synthetic-access")
@Override
public void run()
{
Modified: commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/CacheEventQueue.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/CacheEventQueue.java?rev=1585573&r1=1585572&r2=1585573&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/CacheEventQueue.java (original)
+++ commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/CacheEventQueue.java Mon Apr 7 19:43:36 2014
@@ -260,6 +260,7 @@ public class CacheEventQueue<K extends S
* Waits for a specified time (waitToDieMillis) for something to come in and if no new
* events come in during that period the run method can exit and the thread is dereferenced.
*/
+ @SuppressWarnings("synthetic-access")
@Override
public void run()
{
Modified: commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/control/CompositeCacheManager.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/control/CompositeCacheManager.java?rev=1585573&r1=1585572&r2=1585573&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/control/CompositeCacheManager.java (original)
+++ commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/control/CompositeCacheManager.java Mon Apr 7 19:43:36 2014
@@ -926,6 +926,7 @@ public class CompositeCacheManager
* <p>
* @see java.lang.Thread#run()
*/
+ @SuppressWarnings("synthetic-access")
@Override
public void run()
{
Modified: commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/control/event/ElementEventQueue.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/control/event/ElementEventQueue.java?rev=1585573&r1=1585572&r2=1585573&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/control/event/ElementEventQueue.java (original)
+++ commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/control/event/ElementEventQueue.java Mon Apr 7 19:43:36 2014
@@ -305,6 +305,7 @@ public class ElementEventQueue
* Waits for a specified time (waitToDieMillis) for something to come in and if no new
* events come in during that period the run method can exit and the thread is dereferenced.
*/
+ @SuppressWarnings("synthetic-access")
@Override
public void run()
{
@@ -365,6 +366,7 @@ public class ElementEventQueue
/**
* Main processing method for the AbstractElementEvent object
*/
+ @SuppressWarnings("synthetic-access")
@Override
public void run()
{
@@ -408,6 +410,7 @@ public class ElementEventQueue
* @param event
* @throws IOException
*/
+ @SuppressWarnings("synthetic-access")
ElementEventRunner( IElementEventHandler hand, IElementEvent event )
throws IOException
{
Modified: commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/memory/lru/LHMLRUMemoryCache.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/memory/lru/LHMLRUMemoryCache.java?rev=1585573&r1=1585572&r2=1585573&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/memory/lru/LHMLRUMemoryCache.java (original)
+++ commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/engine/memory/lru/LHMLRUMemoryCache.java Mon Apr 7 19:43:36 2014
@@ -336,6 +336,7 @@ public class LHMLRUMemoryCache<K extends
* @param eldest
* @return true if removed
*/
+ @SuppressWarnings("synthetic-access")
@Override
protected boolean removeEldestEntry( Map.Entry<K, MemoryElementDescriptor<K, V>> eldest )
{
@@ -368,6 +369,7 @@ public class LHMLRUMemoryCache<K extends
* <p>
* @param element The CacheElement
*/
+ @SuppressWarnings("synthetic-access")
private void spoolToDisk( ICacheElement<K, V> element )
{
cache.spoolToDisk( element );
Modified: commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/utils/discovery/UDPDiscoveryReceiver.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/utils/discovery/UDPDiscoveryReceiver.java?rev=1585573&r1=1585572&r2=1585573&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/utils/discovery/UDPDiscoveryReceiver.java (original)
+++ commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/utils/discovery/UDPDiscoveryReceiver.java Mon Apr 7 19:43:36 2014
@@ -287,6 +287,7 @@ public class UDPDiscoveryReceiver
/**
* Process the message.
*/
+ @SuppressWarnings("synthetic-access")
@Override
public void run()
{
@@ -323,6 +324,7 @@ public class UDPDiscoveryReceiver
/**
* Process the incoming message.
*/
+ @SuppressWarnings("synthetic-access")
private void processMessage()
{
DiscoveredService discoveredService = new DiscoveredService();