File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/main/java/io/codebottle/api Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public final class CodeBottleAPI {
2525 private final Map <String , Language > languageCache = new ConcurrentHashMap <>();
2626 private final Map <String , Category > categoryCache = new ConcurrentHashMap <>();
2727 private final Map <String , Snippet > snippetCache = new ConcurrentHashMap <>();
28- private final @ Nullable String token ;
28+ private @ Deprecated final @ Nullable String token ;
2929 private final OkHttpClient httpClient ;
3030 /**
3131 * A {@link CompletableFuture} that completes once lazy loading was finished.
@@ -51,6 +51,10 @@ public CodeBottleAPI waitForLazyLoading() {
5151 return this ;
5252 }
5353
54+ /**
55+ * @deprecated Might be used later.
56+ */
57+ @ Deprecated
5458 public Optional <String > getToken () {
5559 return Optional .ofNullable (token );
5660 }
@@ -336,13 +340,16 @@ public OkHttpClient getHttpClient() {
336340 }
337341
338342 public final static class Builder {
343+ @ Deprecated
339344 private @ Nullable String token = null ;
340345 private OkHttpClient httpClient = new OkHttpClient .Builder ().build ();
341346
347+ @ Deprecated
342348 public Optional <String > getToken () {
343349 return Optional .ofNullable (token );
344350 }
345351
352+ @ Deprecated
346353 public void setToken (@ Nullable String token ) {
347354 this .token = token ;
348355 }
You can’t perform that action at this time.
0 commit comments