Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-s committed Aug 5, 2024
1 parent 9f3afe0 commit 081a9cd
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,11 @@ private TokenResponse tokenExchange(Map<String, String> parameters, Authenticati
throw new IllegalArgumentException("invalid or missing subject_token");
}

log.debug("exchange token request from {} resolved for {} via internal provider", clientAuth.getName(), userAuth.getName());
log.debug(
"exchange token request from {} resolved for {} via internal provider",
clientAuth.getName(),
userAuth.getName()
);

//token is valid, use as context for generation
return jwtTokenService.generateCredentials(userAuth);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ public enum State {
STOP,
UNKNOWN,
NONE,
RUN_ERROR
RUN_ERROR,
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ public enum Operation {
equal,
gt,
lt,
like
like,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public interface SearchFilter<T> {

enum Condition {
and,
or
or,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public class RunUtils {
private static final int third = 3;
private static final int fourth = 4;

private RunUtils() {
}
private RunUtils() {}

//TODO this goes into the accessor, via a with()
public static RunSpecAccessor parseTask(String value) {
Expand Down Expand Up @@ -56,6 +55,8 @@ public static String buildTaskString(@NotNull Task task) {
throw new IllegalArgumentException("invalid or missing function in task spec");
}

return (task.getKind() + "://" + matcher.group(second) + "/" + matcher.group(third) + ":" + matcher.group(fourth));
return (
task.getKind() + "://" + matcher.group(second) + "/" + matcher.group(third) + ":" + matcher.group(fourth)
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public class TaskUtils {
private static final int third = 3;
private static final int fourth = 4;

private TaskUtils() {
}
private TaskUtils() {}

//TODO this goes into the accessor, via a with()
public static TaskSpecAccessor parseFunction(String taskString) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
public class DateUtils {

private final static long MULTIPLIER = 1000;
private static final long MULTIPLIER = 1000;

/**
* Parse a timestamp string into a Date object.
Expand All @@ -33,7 +33,7 @@ public static Date parseDateFromTimestamp(String timestampStr, boolean isMillise
* @throws IllegalArgumentException if the date interval format is invalid.
*/
public static DateInterval parseDateIntervalFromTimestamps(String intervalStr, boolean isMilliseconds)
throws IllegalArgumentException {
throws IllegalArgumentException {
String[] timestampArray = intervalStr.split(",");

if (timestampArray.length != 2) {
Expand Down Expand Up @@ -88,6 +88,5 @@ public static DateInterval parseDateInterval(String intervalStr, String format)
/**
* A record representing a date interval with start and end dates.
*/
public record DateInterval(Date startDate, Date endDate) {
}
public record DateInterval(Date startDate, Date endDate) {}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package it.smartcommunitylabhub.commons.utils;

import it.smartcommunitylabdhub.commons.utils.MapUtils;
import java.util.*;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import java.util.*;



public class TestMapUtils {

@Test
Expand Down

0 comments on commit 081a9cd

Please sign in to comment.