Skip to content

Commit

Permalink
fix code style for static variables in Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jemygraw committed Oct 18, 2017
1 parent fc8559d commit 9906f2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/qiniu/storage/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public final class Configuration implements Cloneable {
/**
* 特殊默认域名
*/
public static String DEFAULT_RS_HOST = "rs.qiniu.com";
public static String DEFAULT_API_HOST = "api.qiniu.com";
public static String defaultRsHost = "rs.qiniu.com";
public static String defaultApiHost = "api.qiniu.com";

public Configuration() {
this.zone = null;
Expand Down Expand Up @@ -137,15 +137,15 @@ public String rsHost() {
if (useHttpsDomains) {
scheme = "https://";
}
return scheme + DEFAULT_RS_HOST;
return scheme + defaultRsHost;
}

public String apiHost() {
String scheme = "http://";
if (useHttpsDomains) {
scheme = "https://";
}
return scheme + DEFAULT_API_HOST;
return scheme + defaultApiHost;
}


Expand Down

0 comments on commit 9906f2b

Please sign in to comment.