Skip to content

Commit 290d0b5

Browse files
committed
fix checkstyle violations
1 parent 8c82c02 commit 290d0b5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

scribejava-apis/src/main/java/com/github/scribejava/apis/StackExchangeApi.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
*/
1717
public class StackExchangeApi extends DefaultApi20 {
1818

19-
private static final String AUTHORIZE_URL
20-
= "https://stackexchange.com/oauth?client_id=%s&redirect_uri=%s";
19+
private static final String AUTHORIZE_URL = "https://stackexchange.com/oauth?client_id=%s&redirect_uri=%s";
2120

2221
protected StackExchangeApi() {
2322
}

scribejava-apis/src/test/java/com/github/scribejava/apis/examples/StackExchangeExample.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ public static void main(String... args) {
2727
final String site = "stackoverflow";
2828
final String secretState = "secret" + new Random().nextInt(999_999);
2929
final OAuth20Service service = new ServiceBuilder()
30-
.apiKey(clientId)
31-
.apiSecret(clientSecret)
32-
.state(secretState)
33-
.callback("http://www.example.com/oauth_callback/")
34-
.build(StackExchangeApi.instance());
30+
.apiKey(clientId)
31+
.apiSecret(clientSecret)
32+
.state(secretState)
33+
.callback("http://www.example.com/oauth_callback/")
34+
.build(StackExchangeApi.instance());
3535
final Scanner in = new Scanner(System.in, "UTF-8");
3636

3737
System.out.println("=== " + NETWORK_NAME + "'s OAuth Workflow ===");
@@ -69,7 +69,8 @@ public static void main(String... args) {
6969

7070
// Now let's go and ask for a protected resource!
7171
System.out.println("Now we're going to access a protected resource...");
72-
final OAuthRequest request = new OAuthRequest(Verb.GET, PROTECTED_RESOURCE_URL + "?site=" + site + "&key=" + key, service);
72+
final OAuthRequest request = new OAuthRequest(Verb.GET,
73+
PROTECTED_RESOURCE_URL + "?site=" + site + "&key=" + key, service);
7374
service.signRequest(accessToken, request);
7475
final Response response = request.send();
7576
System.out.println("Got it! Lets see what we found...");

0 commit comments

Comments
 (0)