Author: tv
Date: Sat Dec 31 13:51:22 2016
New Revision: 1776745
URL: http://svn.apache.org/viewvc?rev=1776745&view=rev
Log:
Remove unused field and method
Modified:
commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/utils/struct/LRUMap.java
Modified:
commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/utils/struct/LRUMap.java
URL:
http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/utils/struct/LRUMap.java?rev=1776745&r1=1776744&r2=1776745&view=diff
==============================================================================
---
commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/utils/struct/LRUMap.java
(original)
+++
commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/utils/struct/LRUMap.java
Sat Dec 31 13:51:22 2016
@@ -1,26 +1,5 @@
package org.apache.commons.jcs.utils.struct;
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.util.concurrent.atomic.AtomicInteger;
-
/**
*
* @author Wiktor NiesiobÄdzki
@@ -32,10 +11,8 @@ import java.util.concurrent.atomic.Atomi
*/
public class LRUMap<K, V> extends AbstractLRUMap<K, V>
{
-
/** if the max is less than 0, there is no limit! */
- int maxObjects = -1;
- AtomicInteger counter = new AtomicInteger(0);
+ private int maxObjects = -1;
public LRUMap()
{
@@ -49,7 +26,7 @@ public class LRUMap<K, V> extends Abstra
*/
public LRUMap(int maxObjects)
{
- super();
+ this();
this.maxObjects = maxObjects;
}
@@ -58,9 +35,4 @@ public class LRUMap<K, V> extends Abstra
{
return maxObjects > 0 && this.size() > maxObjects;
}
-
- public Object getMaxCounter()
- {
- return maxObjects;
- }
}