Skip to content

Commit 4cf75c0

Browse files
small code improvements
1 parent c6570ff commit 4cf75c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/bastiaanjansen/otp/helpers/URIHelper.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
* @author Bastiaan Jansen
1515
*/
1616
public class URIHelper {
17-
18-
private URIHelper() {}
19-
17+
2018
public static final String DIGITS = "digits";
2119
public static final String SECRET = "secret";
2220
public static final String ALGORITHM = "algorithm";
2321
public static final String PERIOD = "period";
2422
public static final String COUNTER = "counter";
2523
public static final String ISSUER = "issuer";
2624

25+
private URIHelper() {}
26+
2727
/**
2828
* Get a map of query items from URI
2929
*
@@ -67,7 +67,7 @@ public static URI createURI(String scheme, String host, String path, Map<String,
6767
for (int i = 0; i < queryKeys.length; i++) {
6868
String sign = i == 0 ? "?" : "&";
6969
String key = queryKeys[i];
70-
uriString.append(String.format("%s%s=%s", sign, key, URLEncoder.encode(query.get(key), "UTF-8")));
70+
uriString.append(String.format("%s%s=%s", sign, key, URLEncoder.encode(query.get(key), "UTF-8")));
7171
}
7272
} catch (UnsupportedEncodingException e) {
7373
// Highly unlikely

0 commit comments

Comments
 (0)