diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 1a4fc99cb34f..6de22ee5b449 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-02-20 Michael Koch + + * gnu/gcj/convert/Convert.java + (main): Use equals() to compare strings. + 2004-02-20 Michael Koch * javax/swing/AbstractButton.java: Made several constants final. diff --git a/libjava/gnu/gcj/convert/Convert.java b/libjava/gnu/gcj/convert/Convert.java index d16adc130145..3b2add6ef425 100644 --- a/libjava/gnu/gcj/convert/Convert.java +++ b/libjava/gnu/gcj/convert/Convert.java @@ -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);