commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1032946 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/nntp/Article.java
Date Tue, 09 Nov 2010 11:57:58 GMT
Author: sebb
Date: Tue Nov  9 11:57:57 2010
New Revision: 1032946

URL: http://svn.apache.org/viewvc?rev=1032946&view=rev
Log:
String comparison using ==

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/nntp/Article.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/nntp/Article.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/nntp/Article.java?rev=1032946&r1=1032945&r2=1032946&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/nntp/Article.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/nntp/Article.java Tue Nov
 9 11:57:57 2010
@@ -133,7 +133,7 @@ public class Article implements Threadab
                     }
                 }
 
-                if (simplifiedSubject == "(no subject)")
+                if ("(no subject)".equals(simplifiedSubject))
                     simplifiedSubject = "";
 
                 int end = len;



Mime
View raw message