Skip to content

Commit 9cf2fe6

Browse files
committed
Syling: remove indent from empty lines
1 parent eb96f7f commit 9cf2fe6

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/main/java/org/openrewrite/java/migrate/joda/templates/AbstractIntervalTemplates.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class AbstractIntervalTemplates implements Templates {
3131
private final MethodMatcher toDuration = new MethodMatcher(JODA_ABSTRACT_INTERVAL + " toDuration()");
3232
private final MethodMatcher toDurationMillis = new MethodMatcher(JODA_ABSTRACT_INTERVAL + " toDurationMillis()");
3333
private final MethodMatcher contains = new MethodMatcher(JODA_ABSTRACT_INTERVAL + " contains(long)");
34-
34+
3535
private final JavaTemplate getStartTemplate = JavaTemplate.builder("#{any(" + THREE_TEN_EXTRA_INTERVAL + ")}.getStart().atZone(ZoneId.systemDefault())")
3636
.javaParser(JavaParser.fromJavaVersion().classpath("threeten-extra"))
3737
.imports(JAVA_ZONE_ID)
@@ -50,7 +50,7 @@ public class AbstractIntervalTemplates implements Templates {
5050
.javaParser(JavaParser.fromJavaVersion().classpath("threeten-extra"))
5151
.imports(JAVA_INSTANT)
5252
.build();
53-
53+
5454
@Getter
5555
private final List<MethodTemplate> templates = new ArrayList<MethodTemplate>() {
5656
{
@@ -61,4 +61,4 @@ public class AbstractIntervalTemplates implements Templates {
6161
add(new MethodTemplate(contains, containsTemplate));
6262
}
6363
};
64-
}
64+
}

src/main/java/org/openrewrite/java/migrate/joda/templates/IntervalTemplates.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class IntervalTemplates implements Templates {
3131
private final MethodMatcher intervalWithTimeZone = new MethodMatcher(JODA_INTERVAL + " <constructor>(long, long, " + JODA_DATE_TIME_ZONE + ")");
3232
private final MethodMatcher intervalWithDateTime = new MethodMatcher(JODA_INTERVAL + " <constructor>(" + JODA_READABLE_INSTANT + ", " + JODA_READABLE_INSTANT + ")");
3333
private final MethodMatcher intervalWithDateTimeAndDuration = new MethodMatcher(JODA_INTERVAL + " <constructor>(" + JODA_READABLE_INSTANT + ", " + JODA_READABLE_DURATION + ")");
34-
34+
3535
private final JavaTemplate intervalTemplate = JavaTemplate.builder("Interval.of(Instant.ofEpochMilli(#{any(long)}), Instant.ofEpochMilli(#{any(long)}))")
3636
.javaParser(JavaParser.fromJavaVersion().classpath("threeten-extra"))
3737
.imports(JAVA_INSTANT, THREE_TEN_EXTRA_INTERVAL)
@@ -44,7 +44,7 @@ public class IntervalTemplates implements Templates {
4444
.javaParser(JavaParser.fromJavaVersion().classpath("threeten-extra"))
4545
.imports(THREE_TEN_EXTRA_INTERVAL)
4646
.build();
47-
47+
4848
@Getter
4949
private final List<MethodTemplate> templates = new ArrayList<MethodTemplate>() {
5050
{
@@ -55,4 +55,4 @@ public class IntervalTemplates implements Templates {
5555
add(new MethodTemplate(intervalWithDateTimeAndDuration, intervalWithDateTimeAndDurationTemplate));
5656
}
5757
};
58-
}
58+
}

src/main/java/org/openrewrite/java/migrate/joda/templates/TimeClassNames.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class TimeClassNames {
5858
public static final String JAVA_LOCAL_TIME = JAVA_TIME_PKG + ".LocalTime";
5959
public static final String JAVA_TEMPORAL_ISO_FIELDS = JAVA_TIME_PKG + ".temporal.IsoFields";
6060
public static final String JAVA_CHRONO_FIELD = JAVA_TIME_PKG + ".temporal.ChronoField";
61-
61+
6262
// ThreeTen-Extra classes
6363
public static final String THREE_TEN_EXTRA_PKG = "org.threeten.extra";
6464
public static final String THREE_TEN_EXTRA_INTERVAL = THREE_TEN_EXTRA_PKG + ".Interval";

src/test/java/org/openrewrite/java/migrate/joda/JodaTimeVisitorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ public void foo(PeriodType periodType) {
793793
)
794794
);
795795
}
796-
796+
797797
@Test
798798
void migrateInterval() {
799799
// language=java
@@ -833,7 +833,7 @@ public void foo() {
833833
)
834834
);
835835
}
836-
836+
837837
@Test
838838
void migrateAbstractInterval() {
839839
// language=java

0 commit comments

Comments
 (0)