Skip to content

Commit

Permalink
spotless and checkStyle check failure fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
siddique-adobe committed Nov 28, 2024
1 parent ab24d23 commit 208ec6c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ public static void updatePropositions(
@Nullable final Map<String, Object> xdm,
@Nullable final Map<String, Object> data,
@Nullable final AdobeCallback<Map<DecisionScope, OptimizeProposition>> callback) {
final double defaultTimeoutSeconds = OptimizeConstants.EDGE_CONTENT_COMPLETE_RESPONSE_TIMEOUT;
final double defaultTimeoutSeconds =
OptimizeConstants.EDGE_CONTENT_COMPLETE_RESPONSE_TIMEOUT;
updatePropositionsInternal(decisionScopes, xdm, data, defaultTimeoutSeconds, callback);
}

Expand Down Expand Up @@ -177,7 +178,8 @@ private static void updatePropositionsInternal(
eventData.put(OptimizeConstants.EventDataKeys.DATA, data);
}

long timeoutMillis = (long) (timeoutSeconds * 1000);
long timeoutMillis = (long) (timeoutSeconds * OptimizeConstants.TIMEOUT_CONVERSION_FACTOR);

eventData.put(OptimizeConstants.EventDataKeys.TIMEOUT, timeoutMillis);

final Event event =
Expand Down Expand Up @@ -348,7 +350,7 @@ private static void getPropositionsInternal(
.setEventData(eventData)
.build();

long timeoutMillis = (long) (timeoutSeconds * 1000);
long timeoutMillis = (long) (timeoutSeconds * OptimizeConstants.TIMEOUT_CONVERSION_FACTOR);

MobileCore.dispatchEventWithResponseCallback(
event,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class OptimizeConstants {
static final String FRIENDLY_NAME = "Optimize";
static final double GET_RESPONSE_CALLBACK_TIMEOUT = 10;
static final double EDGE_CONTENT_COMPLETE_RESPONSE_TIMEOUT = 10;
static final long TIMEOUT_CONVERSION_FACTOR = 1000;

static final String ACTIVITY_ID = "activityId";
static final String XDM_ACTIVITY_ID = "xdm:activityId";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

package com.adobe.marketing.mobile.optimize;

import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;

Expand Down

0 comments on commit 208ec6c

Please sign in to comment.