Ignore:
Timestamp:
2015-10-09T02:12:45+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S3052 - Fields should not be initialized to default values

Location:
trunk/src/org/openstreetmap/josm/io
Files:
17 edited

Legend:

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

    r8510 r8840  
    3838     * Where the data will be stored
    3939     */
    40     private byte[] data = null;
     40    private byte[] data;
    4141
    4242    /**
  • trunk/src/org/openstreetmap/josm/io/CachedFile.java

    r8597 r8840  
    6969    protected CachingStrategy cachingStrategy;
    7070
    71     protected File cacheFile = null;
    72     protected boolean initialized = false;
     71    protected File cacheFile;
     72    protected boolean initialized;
    7373
    7474    public static final long DEFAULT_MAXTIME = -1L;
  • trunk/src/org/openstreetmap/josm/io/ChangesetQuery.java

    r8510 r8840  
    3636
    3737    /** the user id this query is restricted to. null, if no restriction to a user id applies */
    38     private Integer uid = null;
     38    private Integer uid;
    3939    /** the user name this query is restricted to. null, if no restriction to a user name applies */
    40     private String userName = null;
     40    private String userName;
    4141    /** the bounding box this query is restricted to. null, if no restriction to a bounding box applies */
    42     private Bounds bounds = null;
    43 
    44     private Date closedAfter = null;
    45     private Date createdBefore = null;
     42    private Bounds bounds;
     43
     44    private Date closedAfter;
     45    private Date createdBefore;
    4646    /** indicates whether only open changesets are queried. null, if no restrictions regarding open changesets apply */
    47     private Boolean open = null;
     47    private Boolean open;
    4848    /** indicates whether only closed changesets are queried. null, if no restrictions regarding open changesets apply */
    49     private Boolean closed = null;
     49    private Boolean closed;
    5050    /** a collection of changeset ids to query for */
    51     private Collection<Long> changesetIds = null;
     51    private Collection<Long> changesetIds;
    5252
    5353    /**
  • trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java

    r8510 r8840  
    4141     * We therefore read the property at class loading time and remember it's value.
    4242     */
    43     private static boolean JVM_WILL_USE_SYSTEM_PROXIES = false;
     43    private static boolean JVM_WILL_USE_SYSTEM_PROXIES;
    4444    static {
    4545        String v = System.getProperty("java.net.useSystemProxies");
  • trunk/src/org/openstreetmap/josm/io/GpxReader.java

    r8510 r8840  
    6969        private StringBuffer accumulator = new StringBuffer();
    7070
    71         private boolean nokiaSportsTrackerBug = false;
     71        private boolean nokiaSportsTrackerBug;
    7272
    7373        @Override
  • trunk/src/org/openstreetmap/josm/io/MessageNotifier.java

    r8734 r8840  
    5252    private static final Runnable WORKER = new Worker();
    5353
    54     private static volatile ScheduledFuture<?> task = null;
     54    private static volatile ScheduledFuture<?> task;
    5555
    5656    private static class Worker implements Runnable {
    5757
    58         private int lastUnreadCount = 0;
     58        private int lastUnreadCount;
    5959
    6060        @Override
  • trunk/src/org/openstreetmap/josm/io/NmeaReader.java

    r8836 r8840  
    217217        protected WayPoint pWp;
    218218
    219         protected int success = 0; // number of successfully parsed sentences
    220         protected int malformed = 0;
    221         protected int checksumErrors = 0;
    222         protected int noChecksum = 0;
    223         protected int unknown = 0;
    224         protected int zeroCoord = 0;
     219        protected int success; // number of successfully parsed sentences
     220        protected int malformed;
     221        protected int checksumErrors;
     222        protected int noChecksum;
     223        protected int unknown;
     224        protected int zeroCoord;
    225225    }
    226226
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r8836 r8840  
    8181    private static Map<String, OsmApi> instances = new HashMap<>();
    8282
    83     private URL url = null;
     83    private URL url;
    8484
    8585    /**
     
    120120
    121121    /** API version used for server communications */
    122     private String version = null;
     122    private String version;
    123123
    124124    /** API capabilities */
    125     private Capabilities capabilities = null;
     125    private Capabilities capabilities;
    126126
    127127    /** true if successfully initialized */
    128     private boolean initialized = false;
     128    private boolean initialized;
    129129
    130130    /**
  • trunk/src/org/openstreetmap/josm/io/OsmChangeBuilder.java

    r8510 r8840  
    2525    private OsmWriter osmwriter;
    2626    private String apiVersion = DEFAULT_API_VERSION;
    27     private boolean prologWritten = false;
     27    private boolean prologWritten;
    2828
    2929    public OsmChangeBuilder(Changeset changeset) {
  • trunk/src/org/openstreetmap/josm/io/OsmChangesetParser.java

    r8510 r8840  
    7171
    7272        /** The current changeset */
    73         private Changeset current = null;
     73        private Changeset current;
    7474
    7575        /** The current comment */
    76         private ChangesetDiscussionComment comment = null;
     76        private ChangesetDiscussionComment comment;
    7777
    7878        /** The current comment text */
    79         private StringBuilder text = null;
     79        private StringBuilder text;
    8080
    8181        protected void parseChangesetAttributes(Changeset cs, Attributes atts) throws XmlParsingException {
  • trunk/src/org/openstreetmap/josm/io/OsmConnection.java

    r8510 r8840  
    1212import java.nio.charset.StandardCharsets;
    1313
    14 import oauth.signpost.OAuthConsumer;
    15 import oauth.signpost.exception.OAuthException;
    16 
    1714import org.openstreetmap.josm.Main;
    1815import org.openstreetmap.josm.data.oauth.OAuthParameters;
     
    2320import org.openstreetmap.josm.tools.Base64;
    2421
     22import oauth.signpost.OAuthConsumer;
     23import oauth.signpost.exception.OAuthException;
     24
    2525/**
    2626 * Base class that handles common things like authentication for the reader and writer
     
    3030 */
    3131public class OsmConnection {
    32     protected boolean cancel = false;
     32    protected boolean cancel;
    3333    protected HttpURLConnection activeConnection;
    3434    protected OAuthParameters oauthParameters;
  • trunk/src/org/openstreetmap/josm/io/OsmServerLocationReader.java

    r8510 r8840  
    3636        protected final ProgressMonitor progressMonitor;
    3737        protected final Compression compression;
    38         protected InputStream in = null;
     38        protected InputStream in;
    3939
    4040        public Parser(ProgressMonitor progressMonitor, Compression compression) {
  • trunk/src/org/openstreetmap/josm/io/OsmServerReader.java

    r8563 r8840  
    3636public abstract class OsmServerReader extends OsmConnection {
    3737    private OsmApi api = OsmApi.getOsmApi();
    38     private boolean doAuthenticate = false;
     38    private boolean doAuthenticate;
    3939    protected boolean gpxParsedProperly;
    4040
  • trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java

    r8510 r8840  
    5252
    5353    private OsmApi api = OsmApi.getOsmApi();
    54     private boolean canceled = false;
     54    private boolean canceled;
    5555
    5656    private static final int MSECS_PER_SECOND = 1000;
  • trunk/src/org/openstreetmap/josm/io/ProgressInputStream.java

    r8470 r8840  
    1818
    1919    private final InputStream in;
    20     private int readSoFar = 0;
    21     private int lastDialogUpdate = 0;
     20    private int readSoFar;
     21    private int lastDialogUpdate;
    2222    private boolean sizeKnown;
    2323    private final URLConnection connection;
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControlHttpServer.java

    r8510 r8840  
    2020
    2121    /** The server socket */
    22     private ServerSocket server = null;
     22    private ServerSocket server;
    2323
    2424    /** The server instance for IPv4 */
    25     private static volatile RemoteControlHttpServer instance4 = null;
     25    private static volatile RemoteControlHttpServer instance4;
    2626    /** The server instance for IPv6 */
    27     private static volatile RemoteControlHttpServer instance6 = null;
     27    private static volatile RemoteControlHttpServer instance6;
    2828
    2929    /**
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControlHttpsServer.java

    r8540 r8840  
    7272
    7373    /** The server socket */
    74     private ServerSocket server = null;
     74    private ServerSocket server;
    7575
    7676    /** The server instance for IPv4 */
    77     private static volatile RemoteControlHttpsServer instance4 = null;
     77    private static volatile RemoteControlHttpsServer instance4;
    7878    /** The server instance for IPv6 */
    79     private static volatile RemoteControlHttpsServer instance6 = null;
     79    private static volatile RemoteControlHttpsServer instance6;
    8080
    8181    /** SSL context information for connections */
Note: See TracChangeset for help on using the changeset viewer.