Return-Path: Delivered-To: apmail-click-dev-archive@www.apache.org Received: (qmail 24598 invoked from network); 24 Jun 2010 07:41:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Jun 2010 07:41:53 -0000 Received: (qmail 45945 invoked by uid 500); 24 Jun 2010 07:41:53 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 45880 invoked by uid 500); 24 Jun 2010 07:41:51 -0000 Mailing-List: contact dev-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@click.apache.org Delivered-To: mailing list dev@click.apache.org Received: (qmail 45873 invoked by uid 99); 24 Jun 2010 07:41:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jun 2010 07:41:50 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=AWL,FREEMAIL_FROM,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bckfnn@gmail.com designates 209.85.160.170 as permitted sender) Received: from [209.85.160.170] (HELO mail-gy0-f170.google.com) (209.85.160.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jun 2010 07:41:44 +0000 Received: by gyf2 with SMTP id 2so4789840gyf.29 for ; Thu, 24 Jun 2010 00:41:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=FpwrjJ6828bWYHqjyxpAWHgm4siH3co5xBSXf+2eWM8=; b=jtmG3hS1xKRMpELUvoonYHGCxhiQQKc+VgNqWQuYbI4fPPL+BlDv8PfiP6VuezAT3v SiZqN70ebu0wFR/wZLf0msL5QsLWJ7Fu4tTMQ3Bj0+oknv/WmczJq9IyQTBONRVtGpg+ X955LcR9jdnImY3JeeOjBUHD8v6qL+nk4iGfs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ofXodPyQc3tda69f+iNT3hN1WHh6FFbcE6l21HhGFvD1TcLVLjaO2KjXdVdUp7aomu PsKHlcxw2T5gHIHj1YUdeAzPTLeliZUq+FywmxnIBmbPDjyckDA+ZlPVJa/eU9LTUI2R v29Ev5XTRRozYXF23Fvwkmx6xaAi7VZQRY1Pc= MIME-Version: 1.0 Received: by 10.100.245.17 with SMTP id s17mr7600686anh.172.1277365283538; Thu, 24 Jun 2010 00:41:23 -0700 (PDT) Received: by 10.100.192.14 with HTTP; Thu, 24 Jun 2010 00:41:23 -0700 (PDT) In-Reply-To: References: <5795767.60701276797863421.JavaMail.jira@thor> <17710855.28031277333810332.JavaMail.jira@thor> Date: Thu, 24 Jun 2010 09:41:23 +0200 Message-ID: Subject: Re: [jira] Commented: (CLK-696) Use typesafe collection From: Finn Bock To: dev@click.apache.org Content-Type: text/plain; charset=ISO-8859-1 2010/6/24 Adrian A: > What if we make OptionGroup extend Option? > Wouldn't that simplify the problem? Indeed it would, but with a tiny risk of breaking existing user code like: Object opt = ...; if (opt instanceof Option) { doSomethingOption((Option) opt); } else if (opt instanceof OptionGroup) { doSomethingOptionGroup((OptionGroup) opt); } regards, Finn