Ignore:
Timestamp:
2015-12-02T00:05:09+01:00 (9 years ago)
Author:
Don-vip
Message:

sonar - Immutable Field

Location:
trunk/src/org/openstreetmap/josm/gui/oauth
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/RetrieveAccessTokenTask.java

    r8510 r9078  
    2828    private boolean canceled;
    2929    private OAuthToken accessToken;
    30     private OAuthParameters parameters;
     30    private final OAuthParameters parameters;
    3131    private OsmOAuthAuthorizationClient client;
    32     private OAuthToken requestToken;
    33     private Component parent;
     32    private final OAuthToken requestToken;
     33    private final Component parent;
    3434
    3535    /**
  • trunk/src/org/openstreetmap/josm/gui/oauth/RetrieveRequestTokenTask.java

    r8510 r9078  
    2727    private boolean canceled;
    2828    private OAuthToken requestToken;
    29     private OAuthParameters parameters;
     29    private final OAuthParameters parameters;
    3030    private OsmOAuthAuthorizationClient client;
    31     private Component parent;
     31    private final Component parent;
    3232
    3333    /**
  • trunk/src/org/openstreetmap/josm/gui/oauth/TestAccessTokenTask.java

    r8510 r9078  
    1212import javax.xml.parsers.DocumentBuilderFactory;
    1313import javax.xml.parsers.ParserConfigurationException;
    14 
    15 import oauth.signpost.OAuthConsumer;
    16 import oauth.signpost.exception.OAuthException;
    1714
    1815import org.openstreetmap.josm.Main;
     
    3330import org.xml.sax.SAXException;
    3431
     32import oauth.signpost.OAuthConsumer;
     33import oauth.signpost.exception.OAuthException;
     34
    3535/**
    3636 * Checks whether an OSM API server can be accessed with a specific Access Token.
     
    4141 */
    4242public class TestAccessTokenTask extends PleaseWaitRunnable {
    43     private OAuthToken token;
    44     private OAuthParameters oauthParameters;
     43    private final OAuthToken token;
     44    private final OAuthParameters oauthParameters;
    4545    private boolean canceled;
    46     private Component parent;
    47     private String apiUrl;
     46    private final Component parent;
     47    private final String apiUrl;
    4848    private HttpURLConnection connection;
    4949
Note: See TracChangeset for help on using the changeset viewer.