Ignore:
Timestamp:
2014-02-25T01:31:24+01:00 (6 years ago)
Author:
Don-vip
Message:

fix some Sonar issues

Location:
trunk/src/org/openstreetmap/josm/data/oauth
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java

    r6847 r6883  
    2424     * The default JOSM OAuth consumer key (created by user josmeditor).
    2525     */
    26     static public final String DEFAULT_JOSM_CONSUMER_KEY = "F7zPYlVCqE2BUH9Hr4SsWZSOnrKjpug1EgqkbsSb";
     26    public static final String DEFAULT_JOSM_CONSUMER_KEY = "F7zPYlVCqE2BUH9Hr4SsWZSOnrKjpug1EgqkbsSb";
    2727    /**
    2828     * The default JOSM OAuth consumer secret (created by user josmeditor).
    2929     */
    30     static public final String DEFAULT_JOSM_CONSUMER_SECRET = "rIkjpPcBNkMQxrqzcOvOC4RRuYupYr7k8mfP13H5";
     30    public static final String DEFAULT_JOSM_CONSUMER_SECRET = "rIkjpPcBNkMQxrqzcOvOC4RRuYupYr7k8mfP13H5";
    3131    /**
    3232     * The default OSM OAuth request token URL.
    3333     */
    34     static public final String DEFAULT_REQUEST_TOKEN_URL = Main.OSM_WEBSITE + "/oauth/request_token";
     34    public static final String DEFAULT_REQUEST_TOKEN_URL = Main.OSM_WEBSITE + "/oauth/request_token";
    3535    /**
    3636     * The default OSM OAuth access token URL.
    3737     */
    38     static public final String DEFAULT_ACCESS_TOKEN_URL = Main.OSM_WEBSITE + "/oauth/access_token";
     38    public static final String DEFAULT_ACCESS_TOKEN_URL = Main.OSM_WEBSITE + "/oauth/access_token";
    3939    /**
    4040     * The default OSM OAuth authorize URL.
    4141     */
    42     static public final String DEFAULT_AUTHORISE_URL = Main.OSM_WEBSITE + "/oauth/authorize";
     42    public static final String DEFAULT_AUTHORISE_URL = Main.OSM_WEBSITE + "/oauth/authorize";
    4343
    4444
     
    4949     * @return a set of default parameters
    5050     */
    51     static public OAuthParameters createDefault() {
     51    public static OAuthParameters createDefault() {
    5252        return createDefault(null);
    5353    }
     
    6262     * @since 5422
    6363     */
    64     static public OAuthParameters createDefault(String apiUrl) {
     64    public static OAuthParameters createDefault(String apiUrl) {
    6565        OAuthParameters parameters = new OAuthParameters();
    6666        parameters.setConsumerKey(DEFAULT_JOSM_CONSUMER_KEY);
     
    9090     * @return the parameters
    9191     */
    92     static public OAuthParameters createFromPreferences(Preferences pref) {
     92    public static OAuthParameters createFromPreferences(Preferences pref) {
    9393        OAuthParameters parameters = createDefault(pref.get("osm-server.url"));
    9494        parameters.setConsumerKey(pref.get("oauth.settings.consumer-key", parameters.getConsumerKey()));
  • trunk/src/org/openstreetmap/josm/data/oauth/OAuthToken.java

    r5266 r6883  
    1414     * @return the token
    1515     */
    16     static public OAuthToken createToken(OAuthConsumer consumer) {
     16    public static OAuthToken createToken(OAuthConsumer consumer) {
    1717        return new OAuthToken(consumer.getToken(), consumer.getTokenSecret());
    1818    }
Note: See TracChangeset for help on using the changeset viewer.