Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 98305 invoked from network); 23 May 2006 10:40:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 May 2006 10:40:16 -0000 Received: (qmail 41787 invoked by uid 500); 23 May 2006 10:40:12 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 41691 invoked by uid 500); 23 May 2006 10:40:12 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 41674 invoked by uid 99); 23 May 2006 10:40:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 May 2006 03:40:12 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mike.fursov@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 May 2006 03:40:10 -0700 Received: by ug-out-1314.google.com with SMTP id q2so1494871uge for ; Tue, 23 May 2006 03:39:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Z0OOWoyCi2/zbtashlX0+WKmwYWYv80Q4dNMz/5LmYf/lld5X2DcMibfWMRtmRorrU8SI0xhXdGfgBSBmFF6cn2Blt3LL/+qrqZJ5DWaW//yXhf4L1rz917552IyqwihI6sKk4b4Xc8+IA076cr10Ga45Ms+Ja26nDTl818f+r0= Received: by 10.78.58.11 with SMTP id g11mr1364911hua; Tue, 23 May 2006 03:39:48 -0700 (PDT) Received: by 10.78.20.14 with HTTP; Tue, 23 May 2006 03:39:48 -0700 (PDT) Message-ID: Date: Tue, 23 May 2006 17:39:48 +0700 From: "Mikhail Fursov" To: harmony-dev@incubator.apache.org Subject: Re: [jira] Commented: (HARMONY-482) Some code compares Strings with == operator In-Reply-To: <906dd82e0605230333u26399360q7ed8c311e3b6e76b@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6054_8989326.1148380788855" References: <6794237.1148040209769.JavaMail.jira@brutus> <27330389.1148274630155.JavaMail.jira@brutus> <4d0b24970605230253t2335e6d1qbe4d43661e770705@mail.gmail.com> <906dd82e0605230333u26399360q7ed8c311e3b6e76b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_6054_8989326.1148380788855 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline String post1=new String("POST"); String post2=new String("POST"); :) On 5/23/06, Mikhail Loenko wrote: > > This is the only way I've found to make > two different object instances of "POST" string, such that: > > post1.equals("POST"); > AND > post2.equals("POST"); > AND > post1!=post2 > > Feel free to suggest another way > > Thanks, > Mikhail > > 2 -- Mikhail Fursov Intel Middleware Products Division ------=_Part_6054_8989326.1148380788855--