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:
parent
b6c6a23a09
commit
c6a6237687
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user