Skip to content

Commit 5b84e41

Browse files
Spotless
1 parent ab6de8c commit 5b84e41

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

core/src/main/java/apoc/date/Date.java

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ public Map<String, Object> fieldsCypher5(
117117
public Map<String, Object> fields(
118118
final @Name(value = "date", description = "A string representation of a temporal value.") String date,
119119
final @Name(
120-
value = "pattern",
121-
defaultValue = DEFAULT_FORMAT,
122-
description = "The format the given temporal is formatted as.") String pattern) {
120+
value = "pattern",
121+
defaultValue = DEFAULT_FORMAT,
122+
description = "The format the given temporal is formatted as.") String pattern) {
123123
if (date == null) {
124124
return Util.map();
125125
}
@@ -324,9 +324,9 @@ public Long parse(
324324
@Name(value = "time", description = "The datetime to convert.") String time,
325325
@Name(value = "unit", defaultValue = "ms", description = "The conversion unit.") String unit,
326326
@Name(value = "format", defaultValue = DEFAULT_FORMAT, description = "The format the given datetime is in.")
327-
String format,
327+
String format,
328328
final @Name(value = "timezone", defaultValue = "", description = "The timezone the given datetime is in.")
329-
String timezone) {
329+
String timezone) {
330330
Long value = StringUtils.isBlank(time) ? null : parseOrThrow(time, getFormat(format, timezone));
331331
return value == null ? null : unit(unit).convert(value, TimeUnit.MILLISECONDS);
332332
}
@@ -369,18 +369,20 @@ public String convertFormatCypher5(
369369
}
370370

371371
@Deprecated
372-
@UserFunction(value = "apoc.date.convertFormat", deprecatedBy = "Cypher's temporal pattern constructors and format() function.")
372+
@UserFunction(
373+
value = "apoc.date.convertFormat",
374+
deprecatedBy = "Cypher's temporal pattern constructors and format() function.")
373375
@QueryLanguageScope(scope = QueryLanguage.CYPHER_25)
374376
@Description("Converts a `STRING` of one type of date format into a `STRING` of another type of date format.")
375377
public String convertFormat(
376378
@Name(value = "temporal", description = "A string representation of a temporal value.") String input,
377379
@Name(value = "currentFormat", description = "The format the given temporal is formatted as.")
378-
String currentFormat,
380+
String currentFormat,
379381
@Name(
380-
value = "convertTo",
381-
defaultValue = "yyyy-MM-dd",
382-
description = "The format to convert the given temporal value to.")
383-
String convertTo) {
382+
value = "convertTo",
383+
defaultValue = "yyyy-MM-dd",
384+
description = "The format to convert the given temporal value to.")
385+
String convertTo) {
384386
if (input == null || input.isEmpty()) {
385387
return null;
386388
}

core/src/main/java/apoc/temporal/TemporalProcedures.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ public ZonedDateTime toZonedTemporalCypher5(
176176
public ZonedDateTime toZonedTemporal(
177177
@Name(value = "time", description = "The date string to be parsed.") String time,
178178
@Name(value = "format", defaultValue = DEFAULT_FORMAT, description = "The format of the given date string.")
179-
String format,
179+
String format,
180180
final @Name(value = "timezone", defaultValue = "UTC", description = "The timezone the given string is in.")
181-
String timezone) {
181+
String timezone) {
182182
Long value = parseOrThrow(time, getFormat(format, timezone));
183183
return value == null ? null : Instant.ofEpochMilli(value).atZone(ZoneId.of(timezone));
184184
}

0 commit comments

Comments
 (0)