Skip to content

Commit 4650289

Browse files
committed
fix: lint errors
1 parent a6270d7 commit 4650289

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

parse/src/main/java/com/parse/ParseException.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ public class ParseException extends Exception {
102102
public static final int FILE_DELETE_ERROR = 153;
103103
/** Error code indicating that the application has exceeded its request limit. */
104104
public static final int REQUEST_LIMIT_EXCEEDED = 155;
105-
/** Error code indicating that the request was a duplicate and has been discarded due to idempotency rules. */
105+
/**
106+
* Error code indicating that the request was a duplicate and has been discarded due to
107+
* idempotency rules.
108+
*/
106109
public static final int DUPLICATE_REQUEST = 159;
107110
/** Error code indicating that the provided event name is invalid. */
108111
public static final int INVALID_EVENT_NAME = 160;

parse/src/test/java/com/parse/ParseRESTCommandTest.java

+15-15
Original file line numberDiff line numberDiff line change
@@ -562,27 +562,27 @@ public void testIdempotencyLogic() throws Exception {
562562
ParseHttpClient mockHttpClient = mock(ParseHttpClient.class);
563563
AtomicReference<String> requestIdAtomicReference = new AtomicReference<>();
564564
when(mockHttpClient.execute(
565-
argThat(
566-
argument -> {
567-
assertNotNull(
568-
argument.getHeader(ParseRESTCommand.HEADER_REQUEST_ID));
569-
if (requestIdAtomicReference.get() == null)
570-
requestIdAtomicReference.set(
571-
argument.getHeader(
572-
ParseRESTCommand.HEADER_REQUEST_ID));
573-
assertEquals(
574-
argument.getHeader(ParseRESTCommand.HEADER_REQUEST_ID),
575-
requestIdAtomicReference.get());
576-
return true;
577-
})))
578-
.thenThrow(new IOException());
565+
argThat(
566+
argument -> {
567+
assertNotNull(
568+
argument.getHeader(ParseRESTCommand.HEADER_REQUEST_ID));
569+
if (requestIdAtomicReference.get() == null)
570+
requestIdAtomicReference.set(
571+
argument.getHeader(
572+
ParseRESTCommand.HEADER_REQUEST_ID));
573+
assertEquals(
574+
argument.getHeader(ParseRESTCommand.HEADER_REQUEST_ID),
575+
requestIdAtomicReference.get());
576+
return true;
577+
})))
578+
.thenThrow(new IOException());
579579

580580
ParseRESTCommand.server = new URL("http://parse.com");
581581
ParseRESTCommand command = new ParseRESTCommand.Builder().build();
582582
Task<Void> task = command.executeAsync(mockHttpClient).makeVoid();
583583
task.waitForCompletion();
584584

585585
verify(mockHttpClient, times(ParseRequest.DEFAULT_MAX_RETRIES + 1))
586-
.execute(any(ParseHttpRequest.class));
586+
.execute(any(ParseHttpRequest.class));
587587
}
588588
}

0 commit comments

Comments
 (0)