This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: gnu.gcj.convert.Convert


Hi list,


I commited the attached patch to fix gnu.gcj.convert.Convert.


Michael


2004-02-20  Michael Koch  <konqueror@gmx.de>

	* gnu/gcj/convert/Convert.java
	(main): Use equals() to compare strings.

Index: gnu/gcj/convert/Convert.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/convert/Convert.java,v
retrieving revision 1.8
diff -u -b -B -r1.8 Convert.java
--- gnu/gcj/convert/Convert.java	25 Mar 2002 22:08:25 -0000	1.8
+++ gnu/gcj/convert/Convert.java	20 Feb 2004 16:59:50 -0000
@@ -157,10 +157,10 @@
 	UnicodeToBytes outEncoder
 	  = outEncodingName == null ? UnicodeToBytes.getDefaultEncoder()
 	  : UnicodeToBytes.getEncoder(outEncodingName);
-	InputStream inStream = inName == "-" ? System.in
+	InputStream inStream = inName.equals("-") ? System.in
 	  : new FileInputStream(inName);
 	OutputStream outStream;
-	if (outName == "-")
+	if (outName.equals("-"))
 	  outStream = System.out;
 	else
 	  outStream = new FileOutputStream(outName);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]