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 2021/11/22 20:17:13 UTC
[commons-jcs] 01/02: Remove dead code
This is an automated email from the ASF dual-hosted git repository.
tv pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jcs.git
commit c773351f849d38cde874d8fc051638a7a3524522
Author: Thomas Vandahl <tv...@apache.org>
AuthorDate: Mon Nov 22 21:15:59 2021 +0100
Remove dead code
---
.../socket/tcp/LateralTCPIssueRemoveOnPutUnitTest.java | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPIssueRemoveOnPutUnitTest.java b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPIssueRemoveOnPutUnitTest.java
index 6ff8ee6..1910e89 100644
--- a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPIssueRemoveOnPutUnitTest.java
+++ b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPIssueRemoveOnPutUnitTest.java
@@ -129,8 +129,6 @@ public class LateralTCPIssueRemoveOnPutUnitTest
public void runTestForRegion( final String region, final int range, final int numOps, final int testNum )
throws Exception
{
- final boolean show = false;
-
final CacheAccess<String, String> cache = JCS.getInstance( region );
Thread.sleep( 100 );
@@ -169,23 +167,19 @@ public class LateralTCPIssueRemoveOnPutUnitTest
final ICacheElement<String, String> element = new CacheElement<>( region, key, region + ":data" + i
+ " junk asdfffffffadfasdfasf " + kn + ":" + n );
service.update( element );
- if ( show )
- {
- p( "put " + key );
- }
+ p("put " + key);
- if (show && i % 100 == 0 )
+ if (i % 100 == 0)
{
- System.out.println( cache.getStats() );
+ p(cache.getStats());
}
}
- p( "Finished cycle of " + numOps );
+ p("Finished cycle of " + numOps);
}
catch ( final Exception e )
{
p( e.toString() );
- e.printStackTrace( System.out );
throw e;
}