Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EC92B176AE for ; Wed, 25 Mar 2015 14:47:09 +0000 (UTC) Received: (qmail 60613 invoked by uid 500); 25 Mar 2015 14:46:53 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 60523 invoked by uid 500); 25 Mar 2015 14:46:53 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 60342 invoked by uid 99); 25 Mar 2015 14:46:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2015 14:46:53 +0000 Date: Wed, 25 Mar 2015 14:46:53 +0000 (UTC) From: "Felix Rabe (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (COLLECTIONS-558) ListOrderedSet#remove(int) should return E instead of Object MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Felix Rabe created COLLECTIONS-558: -------------------------------------- Summary: ListOrderedSet#remove(int) should return E instead of Object Key: COLLECTIONS-558 URL: https://issues.apache.org/jira/browse/COLLECTIONS-558 Project: Commons Collections Issue Type: Bug Components: Set Affects Versions: 4.0 Reporter: Felix Rabe Since {{List#remove(int)}} returns {{E}} the implementation in {{ListOrderedSet}} should also return {{E}}. Minimal example that fails to compile: {code:java} ListOrderedSet los = new ListOrderedSet(); los.add("foo"); String s = los.remove(0); {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)