From c6a62376874e0fab628a35d5916ba0f326cbd997 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Fri, 20 Feb 2004 17:02:35 +0000 Subject: [PATCH] 2004-02-20 Michael Koch * gnu/gcj/convert/Convert.java (main): Use equals() to compare strings. From-SVN: r78174 --- libjava/ChangeLog | 5 +++++ libjava/gnu/gcj/convert/Convert.java | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 1a4fc99cb34..6de22ee5b44 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 d16adc13014..3b2add6ef42 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);