Skip to content

Commit

Permalink
chore(core): remove some compilation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Oct 3, 2022
1 parent fe0f2cf commit a17d19a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public class Schedule extends AbstractTrigger implements PollingTriggerInterface
title = "The time zone id to use for evaluate cron. Default value is the server default zone id."
)
@PluginProperty(dynamic = true)
@Builder.Default
private String timezone = ZoneId.systemDefault().toString();

@Schema(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

abstract public class BashService {
protected static final ObjectMapper MAPPER = JacksonMapper.ofJson();
private static final Pattern PATTERN = Pattern.compile("^::(\\{.*\\})::$");
private static final Pattern PATTERN = Pattern.compile("^::(\\{.*})::$");

public static List<String> finalCommandsWithInterpreter(
String interpreter,
Expand Down Expand Up @@ -104,8 +104,6 @@ private static void validFilename(String s) {
}

public static Map<String, String> transformInputFiles(RunContext runContext, @NotNull Object inputFiles) throws IllegalVariableEvaluationException, JsonProcessingException {
Map<String, String> finalInputFiles;

if (inputFiles instanceof Map) {
//noinspection unchecked
return (Map<String, String>) inputFiles;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ public class Concat extends Task implements RunnableTask<Concat.Output> {
@PluginProperty(dynamic = true)
private String separator;

@SuppressWarnings("unchecked")
@Override
public Concat.Output run(RunContext runContext) throws Exception {
File tempFile = runContext.tempFile().toFile();
try (FileOutputStream fileOutputStream = new FileOutputStream(tempFile)) {
List<String> finalFiles;
if (this.files instanceof List) {
//noinspection unchecked
finalFiles = (List<String>) this.files;
} else if (this.files instanceof String) {
final TypeReference<List<String>> reference = new TypeReference<>() {};
Expand Down

0 comments on commit a17d19a

Please sign in to comment.