Skip to content

Commit ed3ad9b

Browse files
committed
chore: formatting
1 parent d96aea2 commit ed3ad9b

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

src/main/java/com/contentstack/cms/Contentstack.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,14 @@ public Response<LoginDetails> login(String emailId, String password) throws IOEx
173173
* Example:
174174
* <pre>
175175
* // Login with direct token
176-
* Map<String, String> params = new HashMap<>();
177-
* params.put("tfaToken", "123456");
178-
* Response<LoginDetails> response = contentstack.login(email, password, params);
176+
* {@code Map<String, String> params = new HashMap<>();}
177+
* {@code params.put("tfaToken", "123456");}
178+
* {@code Response<LoginDetails> response = contentstack.login(email, password, params);}
179179
*
180180
* // OR login with MFA secret
181-
* Map<String, String> params = new HashMap<>();
182-
* params.put("mfaSecret", "YOUR_SECRET");
183-
* Response<LoginDetails> response = contentstack.login(email, password, params);
181+
* {@code Map<String, String> params = new HashMap<>();}
182+
* {@code params.put("mfaSecret", "YOUR_SECRET");}
183+
* {@code Response<LoginDetails> response = contentstack.login(email, password, params);}
184184
* </pre>
185185
*/
186186
public Response<LoginDetails> login(String emailId, String password, Map<String, String> params) throws IOException {
@@ -691,8 +691,7 @@ public Builder setTimeout(int timeout) {
691691
* single-user application. The tuning parameters in this pool are
692692
* subject to change in future OkHttp releases. Currently, this pool
693693
* holds up to 5 idle connections which will be evicted after 5 minutes
694-
* of inactivity.
695-
* <p>
694+
* of inactivity
696695
* <p>
697696
* public ConnectionPool() { this(5, 5, TimeUnit.MINUTES); }
698697
*

src/main/java/com/contentstack/cms/user/User.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ private HashMap<String, String> loginHeader() {
9797
* Example:
9898
* <pre>
9999
* // Login with direct token
100-
* Map<String, String> params = new HashMap<>();
101-
* params.put("tfaToken", "123456");
102-
* Call<LoginDetails> call = user.login(email, password, params);
100+
* {@code Map<String, String> params = new HashMap<>();}
101+
* {@code params.put("tfaToken", "123456");}
102+
* {@code Call<LoginDetails> call = user.login(email, password, params);}
103103
*
104104
* // OR login with MFA secret
105-
* Map<String, String> params = new HashMap<>();
106-
* params.put("mfaSecret", "YOUR_SECRET");
107-
* Call<LoginDetails> call = user.login(email, password, params);
105+
* {@code Map<String, String> params = new HashMap<>();}
106+
* {@code params.put("mfaSecret", "YOUR_SECRET");}
107+
* {@code Call<LoginDetails> call = user.login(email, password, params);}
108108
* </pre>
109109
*/
110110
public Call<LoginDetails> login(@NotNull String email, @NotNull String password, @NotNull Map<String, String> params) {

0 commit comments

Comments
 (0)