Skip to content

Commit 9640a74

Browse files
committed
drop deprecated methods
1 parent 6c5b9b3 commit 9640a74

1 file changed

Lines changed: 6 additions & 22 deletions

File tree

‎scribejava-apis/src/main/java/com/github/scribejava/apis/LinkedInApi.java‎

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,16 @@ public class LinkedInApi extends DefaultApi10a {
1010

1111
private final String scopesAsString;
1212

13-
/**
14-
* @deprecated use {@link #instance() }
15-
*/
16-
@Deprecated
17-
//TODO: make protected in the next release
18-
public LinkedInApi() {
13+
protected LinkedInApi() {
1914
scopesAsString = null;
2015
}
2116

22-
/**
23-
* @param scopes scopes
24-
* @deprecated use {@link #instance(java.lang.String...) }
25-
*/
26-
@Deprecated
27-
//TODO: make protected in the next release
28-
public LinkedInApi(String... scopes) {
29-
//TODO: deprecated check
30-
if (scopes == null || scopes.length == 0) {
31-
scopesAsString = null;
32-
} else {
33-
final StringBuilder builder = new StringBuilder();
34-
for (String scope : scopes) {
35-
builder.append('+').append(scope);
36-
}
37-
scopesAsString = "?scope=" + builder.substring(1);
17+
protected LinkedInApi(String... scopes) {
18+
final StringBuilder builder = new StringBuilder();
19+
for (String scope : scopes) {
20+
builder.append('+').append(scope);
3821
}
22+
scopesAsString = "?scope=" + builder.substring(1);
3923
}
4024

4125
private static class InstanceHolder {

0 commit comments

Comments
 (0)