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

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

From-SVN: r78174
This commit is contained in:
Michael Koch 2004-02-20 17:02:35 +00:00 committed by Michael Koch
parent b6c6a23a09
commit c6a6237687
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-02-20 Michael Koch <konqueror@gmx.de>
* gnu/gcj/convert/Convert.java
(main): Use equals() to compare strings.
2004-02-20 Michael Koch <konqueror@gmx.de>
* javax/swing/AbstractButton.java: Made several constants final.

View File

@ -157,10 +157,10 @@ public class Convert
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);