Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5FE38200B21 for ; Wed, 11 May 2016 20:09:35 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5EB0B160A19; Wed, 11 May 2016 18:09:35 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 80F48160A1A for ; Wed, 11 May 2016 20:09:34 +0200 (CEST) Received: (qmail 52355 invoked by uid 500); 11 May 2016 18:09:33 -0000 Mailing-List: contact commits-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list commits@geode.incubator.apache.org Received: (qmail 52342 invoked by uid 99); 11 May 2016 18:09:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2016 18:09:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0A89A1A10C2 for ; Wed, 11 May 2016 18:09:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.221 X-Spam-Level: X-Spam-Status: No, score=-3.221 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ay69imerl_ch for ; Wed, 11 May 2016 18:09:31 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 5655C5FBC4 for ; Wed, 11 May 2016 18:09:30 +0000 (UTC) Received: (qmail 52061 invoked by uid 99); 11 May 2016 18:09:29 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2016 18:09:29 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6FB8FE07F4; Wed, 11 May 2016 18:09:29 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: klund@apache.org To: commits@geode.incubator.apache.org Date: Wed, 11 May 2016 18:09:33 -0000 Message-Id: <41a107f7414c4267b2672077e70e1e59@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [05/10] incubator-geode git commit: GEODE-248: remove unused BoundedLinkedHashMap archived-at: Wed, 11 May 2016 18:09:35 -0000 GEODE-248: remove unused BoundedLinkedHashMap Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/fc943cb8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/fc943cb8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/fc943cb8 Branch: refs/heads/feature/GEODE-1371 Commit: fc943cb81e10f4121ce9a1e6ca6e8e0d3fbc10f9 Parents: 463ae16 Author: Darrel Schneider Authored: Tue May 10 14:15:09 2016 -0700 Committer: Darrel Schneider Committed: Wed May 11 10:13:12 2016 -0700 ---------------------------------------------------------------------- .../cache/util/BoundedLinkedHashMap.java | 88 -------------------- .../codeAnalysis/sanctionedSerializables.txt | 1 - 2 files changed, 89 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/fc943cb8/geode-core/src/main/java/com/gemstone/gemfire/cache/util/BoundedLinkedHashMap.java ---------------------------------------------------------------------- diff --git a/geode-core/src/main/java/com/gemstone/gemfire/cache/util/BoundedLinkedHashMap.java b/geode-core/src/main/java/com/gemstone/gemfire/cache/util/BoundedLinkedHashMap.java deleted file mode 100755 index fbb024a..0000000 --- a/geode-core/src/main/java/com/gemstone/gemfire/cache/util/BoundedLinkedHashMap.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * 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. - */ -package com.gemstone.gemfire.cache.util; - -import java.util.LinkedHashMap; -import java.util.Map; - -/** - * Class BoundedLinkedHashMap is a bounded - * LinkedHashMap. The bound is the maximum - * number of entries the BoundedLinkedHashMap - * can contain. - * - * @since 4.2 - * @deprecated as of 5.7 create your own class that extends {@link LinkedHashMap} - * and implement {@link LinkedHashMap#removeEldestEntry} - * to enforce a maximum number of entries. - */ -public class BoundedLinkedHashMap extends LinkedHashMap -{ - private static final long serialVersionUID = -3419897166186852692L; - - /** - * The maximum number of entries allowed in this - * BoundedLinkedHashMap - */ - protected int _maximumNumberOfEntries; - - /** - * Constructor. - * - * @param initialCapacity The initial capacity. - * @param loadFactor The load factor - * @param maximumNumberOfEntries The maximum number of allowed entries - */ - public BoundedLinkedHashMap(int initialCapacity, float loadFactor, int maximumNumberOfEntries) { - super(initialCapacity, loadFactor); - this._maximumNumberOfEntries = maximumNumberOfEntries; - } - - /** - * Constructor. - * - * @param initialCapacity The initial capacity. - * @param maximumNumberOfEntries The maximum number of allowed entries - */ - public BoundedLinkedHashMap(int initialCapacity, int maximumNumberOfEntries) { - super(initialCapacity); - this._maximumNumberOfEntries = maximumNumberOfEntries; - } - - /** - * Constructor. - * - * @param maximumNumberOfEntries The maximum number of allowed entries - */ - public BoundedLinkedHashMap(int maximumNumberOfEntries) { - super(); - this._maximumNumberOfEntries = maximumNumberOfEntries; - } - - /** - * Returns the maximum number of entries. - * @return the maximum number of entries - */ - public int getMaximumNumberOfEntries(){ - return this._maximumNumberOfEntries; - } - - @Override - protected boolean removeEldestEntry(Map.Entry entry) { - return size() > this._maximumNumberOfEntries; - } -} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/fc943cb8/geode-core/src/test/resources/com/gemstone/gemfire/codeAnalysis/sanctionedSerializables.txt ---------------------------------------------------------------------- diff --git a/geode-core/src/test/resources/com/gemstone/gemfire/codeAnalysis/sanctionedSerializables.txt b/geode-core/src/test/resources/com/gemstone/gemfire/codeAnalysis/sanctionedSerializables.txt index f356bda..ed0f9fc 100755 --- a/geode-core/src/test/resources/com/gemstone/gemfire/codeAnalysis/sanctionedSerializables.txt +++ b/geode-core/src/test/resources/com/gemstone/gemfire/codeAnalysis/sanctionedSerializables.txt @@ -202,7 +202,6 @@ com/gemstone/gemfire/cache/query/internal/parse/GemFireAST,true,7799648022743052 com/gemstone/gemfire/cache/query/internal/utils/PDXUtils$1,false com/gemstone/gemfire/cache/query/internal/utils/PDXUtils$2,false com/gemstone/gemfire/cache/snapshot/SnapshotOptions$SnapshotFormat,false -com/gemstone/gemfire/cache/util/BoundedLinkedHashMap,true,-3419897166186852692,_maximumNumberOfEntries:int com/gemstone/gemfire/cache/util/Gateway$OrderPolicy,false com/gemstone/gemfire/cache/wan/GatewaySender$OrderPolicy,false com/gemstone/gemfire/compression/CompressionException,true,4118639654597191235