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 B33582009C6 for ; Tue, 17 May 2016 02:38:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B1E4B160A20; Tue, 17 May 2016 00:38:16 +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 D31E7160A1F for ; Tue, 17 May 2016 02:38:15 +0200 (CEST) Received: (qmail 18874 invoked by uid 500); 17 May 2016 00:38:15 -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 18865 invoked by uid 99); 17 May 2016 00:38:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 00:38:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9F19BC943F for ; Tue, 17 May 2016 00:38:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 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=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id PU0Ld5DFdvy2 for ; Tue, 17 May 2016 00:38:13 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id AE30F5FAD1 for ; Tue, 17 May 2016 00:38:12 +0000 (UTC) Received: (qmail 13260 invoked by uid 99); 17 May 2016 00:38:11 -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; Tue, 17 May 2016 00:38:11 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1134EDFB73; Tue, 17 May 2016 00:38:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: agingade@apache.org To: commits@geode.incubator.apache.org Date: Tue, 17 May 2016 00:38:14 -0000 Message-Id: <1a184949a3954028886bab0200e3fd61@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [05/50] [abbrv] incubator-geode git commit: GEODE-248: remove unused BoundedLinkedHashMap archived-at: Tue, 17 May 2016 00:38:16 -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/a8282eb3 Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/a8282eb3 Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/a8282eb3 Branch: refs/heads/feature/GEODE-1209 Commit: a8282eb38fc85f41ffcf8a45ea1d130fa9e2c3de Parents: 1db55d8 Author: Darrel Schneider Authored: Tue May 10 14:15:09 2016 -0700 Committer: Anil Committed: Mon May 16 17:31:53 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/a8282eb3/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/a8282eb3/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