Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 3aa1d24

Browse files
SynapticloopSynapticloop
authored andcommitted
minor documentation for travis
1 parent 53b8203 commit 3aa1d24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/synapticloop/b2/B2ApiClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,12 @@ public B2DownloadFileResponse headFileById(String fileId) throws B2ApiException
388388
return(new B2HeadFileByIdRequest(getB2AuthorizeAccountResponse(), fileId).getResponse());
389389
}
390390

391+
/**
392+
* Return an authorize account response and cache it, or create a new one
393+
*
394+
* @return the authorize account response
395+
* @throws B2ApiException if there was an error authenticating
396+
*/
391397
private synchronized B2AuthorizeAccountResponse getB2AuthorizeAccountResponse() throws B2ApiException {
392398
if(null == b2AuthorizeAccountResponse) {
393399
b2AuthorizeAccountResponse = new B2AuthorizeAccountRequest(accountId, applicationKey).getResponse();

0 commit comments

Comments
 (0)