diff options
author | Michi Henning <michi@zeroc.com> | 2009-05-14 11:15:56 +1000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2009-05-14 11:15:56 +1000 |
commit | 53d3f31392f843bdc080f5cebc8e17ab2637600f (patch) | |
tree | 31abfea6f88e67fce1d037f075fca479166160b1 /java/src/IceSSL/RFC2253.java | |
parent | Fixed performance issues reported by FindBugs. Made corresponding (diff) | |
download | ice-53d3f31392f843bdc080f5cebc8e17ab2637600f.tar.bz2 ice-53d3f31392f843bdc080f5cebc8e17ab2637600f.tar.xz ice-53d3f31392f843bdc080f5cebc8e17ab2637600f.zip |
Fixed incorrect string comparison (reference equality instead of string equality)
spotted by FindBugs.
Diffstat (limited to 'java/src/IceSSL/RFC2253.java')
-rw-r--r-- | java/src/IceSSL/RFC2253.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/IceSSL/RFC2253.java b/java/src/IceSSL/RFC2253.java index 1272b15b6f2..13e701ba15d 100644 --- a/java/src/IceSSL/RFC2253.java +++ b/java/src/IceSSL/RFC2253.java @@ -183,8 +183,8 @@ class RFC2253 // First the OID case. // if(Character.isDigit(state.data.charAt(state.pos)) || - (state.data.length() - state.pos >= 4 && (state.data.substring(state.pos, state.pos + 4) == "oid." || - state.data.substring(state.pos, state.pos + 4) == "OID."))) + (state.data.length() - state.pos >= 4 && (state.data.substring(state.pos, state.pos + 4).equals("oid.") || + state.data.substring(state.pos, state.pos + 4).equals("OID.")))) { if(!Character.isDigit(state.data.charAt(state.pos))) { |