Ignore:
Timestamp:
2013-07-26T21:43:10+02:00 (11 years ago)
Author:
akks
Message:

see #8902 - patch by shinigami
str != null && str.equals("CONST") => "CONST".equals(str)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmServerReader.java

    r6070 r6089  
    153153    private InputStream FixEncoding(InputStream stream, String encoding) throws IOException
    154154    {
    155         if (encoding != null && encoding.equalsIgnoreCase("gzip")) {
     155        if ("gzip".equalsIgnoreCase(encoding)) {
    156156            stream = new GZIPInputStream(stream);
    157157        }
    158         else if (encoding != null && encoding.equalsIgnoreCase("deflate")) {
     158        else if ("deflate".equalsIgnoreCase(encoding)) {
    159159            stream = new InflaterInputStream(stream, new Inflater(true));
    160160        }
Note: See TracChangeset for help on using the changeset viewer.