Skip to content

Commit a86275a

Browse files
Fixed trailing spaces
1 parent 9e87b62 commit a86275a

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

iterableapi/src/main/java/com/iterable/iterableapi/IterableBackgroundInitializer.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void processAll(ExecutorService executor) {
6060
if (!canStartProcessing(executor)) {
6161
return;
6262
}
63-
63+
6464
isProcessing = true;
6565
executor.execute(this::processQueuedOperations);
6666
}
@@ -70,25 +70,25 @@ private boolean canStartProcessing(ExecutorService executor) {
7070
IterableLogger.w(TAG, "Already processing operations, skipping");
7171
return false;
7272
}
73-
73+
7474
if (executor == null || executor.isShutdown()) {
7575
IterableLogger.e(TAG, "Cannot process operations: executor unavailable");
7676
return false;
7777
}
78-
78+
7979
return true;
8080
}
8181

8282

8383
private void processQueuedOperations() {
8484
try {
8585
IterableLogger.d(TAG, "Starting to process queued operations");
86-
86+
8787
QueuedOperation operation;
8888
while ((operation = operations.poll()) != null) {
8989
executeOperationOnMainThread(operation);
9090
}
91-
91+
9292
IterableLogger.d(TAG, "Finished processing queued operations");
9393
} finally {
9494
isProcessing = false;
@@ -98,7 +98,7 @@ private void processQueuedOperations() {
9898

9999
private void executeOperationOnMainThread(QueuedOperation operation) {
100100
IterableLogger.d(TAG, "Executing queued operation: " + operation.getDescription());
101-
101+
102102
mainThreadHandler.post(() -> {
103103
try {
104104
operation.execute();
@@ -235,14 +235,14 @@ private static boolean performInitializationWithTimeout(@NonNull Context context
235235
long startTime) {
236236
try {
237237
IterableLogger.d(TAG, "Starting initialization with " + INITIALIZATION_TIMEOUT_SECONDS + "s timeout");
238-
238+
239239
Future<?> initFuture = initExecutor.submit(() -> {
240240
IterableLogger.d(TAG, "Executing initialization on background thread");
241241
IterableApi.initialize(context, apiKey, config);
242242
});
243243

244244
initFuture.get(INITIALIZATION_TIMEOUT_SECONDS, TimeUnit.SECONDS);
245-
245+
246246
long elapsed = System.currentTimeMillis() - startTime;
247247
IterableLogger.d(TAG, "Initialization completed successfully in " + elapsed + "ms");
248248
return true;

iterableapi/src/test/java/com/iterable/iterableapi/IterableAsyncInitializationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,13 +1333,13 @@ public void onSDKInitialized() {
13331333
for (int i = 0; i < 50; i++) { // Try for up to 5 seconds (50 * 100ms)
13341334
Thread.sleep(100);
13351335
ShadowLooper.runUiThreadTasksIncludingDelayedTasks();
1336-
1336+
13371337
if (IterableBackgroundInitializer.getQueuedOperationCount() == 0) {
13381338
queueEmpty = true;
13391339
break;
13401340
}
13411341
}
1342-
1342+
13431343
assertTrue("All operations should be processed within timeout", queueEmpty);
13441344
assertEquals("All operations should be processed", 0, IterableBackgroundInitializer.getQueuedOperationCount());
13451345
}

0 commit comments

Comments
 (0)