commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r429442 - /jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java
Date Mon, 07 Aug 2006 19:22:24 GMT
Author: dennisl
Date: Mon Aug  7 12:22:24 2006
New Revision: 429442

URL: http://svn.apache.org/viewvc?rev=429442&view=rev
Log:
Remove the use of Java 1.5 specific metods.

Modified:
    jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java

Modified: jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java?rev=429442&r1=429441&r2=429442&view=diff
==============================================================================
--- jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java
(original)
+++ jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java
Mon Aug  7 12:22:24 2006
@@ -142,11 +142,11 @@
 
 			// Now set the permissions (or at least a subset thereof - full permissions would probably
require 
 			// subclassing FTPFile and adding extra metainformation there)
-			if (attrib.contains("R")) {
+			if (attrib.indexOf("R") != -1) {
 				f.setPermission(FTPFile.USER_ACCESS, FTPFile.READ_PERMISSION,
 						true);
 			}
-			if (attrib.contains("W")) {
+			if (attrib.indexOf("W") != -1) {
 				f.setPermission(FTPFile.USER_ACCESS, FTPFile.WRITE_PERMISSION,
 						true);
 			}



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message