commits@javamail.java.net

[mercurial:112] Remove redundant test found by FindBugs.

From: <shannon_at_kenai.com>
Date: Mon, 9 Feb 2009 19:41:02 +0000 (GMT)

Repository: mercurial
Revision: 112
Author: Bill Shannon <bill.shannon_at_sun.com>
Date: 2009-02-05 02:00:05 UTC

Log Message:
-----------
Remove redundant test found by FindBugs.

Modified Paths:
--------------
    mail/src/main/java/javax/mail/internet/InternetAddress.java

Diffs:
-----
diff -r 6a47c39fd352 -r 71f4da2f4941
mail/src/main/java/javax/mail/internet/InternetAddress.java
--- a/mail/src/main/java/javax/mail/internet/InternetAddress.java
Wed Feb 04 17:57:45 2009 -0800
+++ b/mail/src/main/java/javax/mail/internet/InternetAddress.java
Wed Feb 04 18:00:05 2009 -0800
@@ -1,7 +1,7 @@
 /*
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  *
- * Copyright 1997-2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
  *
  * The contents of this file are subject to the terms of either the
GNU
  * General Public License Version 2 only ("GPL") or the Common
Development
@@ -896,7 +896,7 @@
                 * ``"joe doe" (john.doe_at_example.com)''.
                 */
                if (parseHdr && !strict && pers != null &&
- pers != null && pers.indexOf('@') >= 0 &&
+ pers.indexOf('@') >= 0 &&
                        addr.indexOf('@') < 0 && addr.indexOf('!') < 0)
{
                    String tmp = addr;
                    addr = pers;