Skip to content

Commit 3742f7f

Browse files
committed
4825 Fix pmd
1 parent b2bf290 commit 3742f7f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

sdks/backend/java/component-api/src/main/java/com/bytechef/component/definition/Authorization.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public String getName() {
201201
return name().toLowerCase();
202202
}
203203

204-
private AuthorizationType(boolean hasRefreshToken) {
204+
AuthorizationType(boolean hasRefreshToken) {
205205
this.hasRefreshToken = hasRefreshToken;
206206
}
207207

server/ee/libs/platform/platform-scheduler/platform-scheduler-aws/src/main/java/com/bytechef/ee/platform/scheduler/aws/AwsConnectionRefreshScheduler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ private static String getScheduleName(Long connectionId, String tenantId) {
129129
private String getTokenRefreshScheduleExpression(Instant tokenExpirationTime) {
130130
Duration tokenValidityDuration = Duration.between(Instant.now(), tokenExpirationTime);
131131

132-
return "rate(" + Math.max(1, ((tokenValidityDuration.getSeconds() / 60) - MINUTES_BEFORE_TOKEN_EXPIRES))
133-
+ " minutes)";
132+
return "rate(" + Math.max(1, (tokenValidityDuration.getSeconds() / 60) - MINUTES_BEFORE_TOKEN_EXPIRES) +
133+
" minutes)";
134134
}
135135

136136
private static final int MINUTES_BEFORE_TOKEN_EXPIRES = 5;

0 commit comments

Comments
 (0)