From 1b31d6da9ab09aafd1fcd0f80a06484185573fa1 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Wed, 17 Mar 2021 12:45:30 +0300 Subject: [PATCH] java.time: format code according to checkstyle rules --- .idea/inspectionProfiles/Project_Default.xml | 3 - .../src/main/java/org/threeten/bp/Clock.java | 17 +- .../org/threeten/bp/DateTimeException.java | 15 + .../main/java/org/threeten/bp/DayOfWeek.java | 33 +- .../main/java/org/threeten/bp/Duration.java | 78 +- .../main/java/org/threeten/bp/Instant.java | 51 +- .../main/java/org/threeten/bp/LocalDate.java | 80 +- .../java/org/threeten/bp/LocalDateTime.java | 80 +- .../main/java/org/threeten/bp/LocalTime.java | 44 +- .../src/main/java/org/threeten/bp/Month.java | 32 +- .../main/java/org/threeten/bp/MonthDay.java | 36 +- .../java/org/threeten/bp/OffsetDateTime.java | 55 +- .../main/java/org/threeten/bp/OffsetTime.java | 31 +- .../src/main/java/org/threeten/bp/Period.java | 53 +- .../src/main/java/org/threeten/bp/Year.java | 41 +- .../main/java/org/threeten/bp/YearMonth.java | 64 +- .../src/main/java/org/threeten/bp/ZoneId.java | 26 +- .../main/java/org/threeten/bp/ZoneOffset.java | 48 +- .../main/java/org/threeten/bp/ZoneRegion.java | 22 +- .../java/org/threeten/bp/ZonedDateTime.java | 87 +- .../bp/chrono/AbstractChronology.java | 15 + .../threeten/bp/chrono/ChronoDateImpl.java | 37 +- .../threeten/bp/chrono/ChronoLocalDate.java | 22 +- .../bp/chrono/ChronoLocalDateTime.java | 34 +- .../bp/chrono/ChronoLocalDateTimeImpl.java | 36 +- .../org/threeten/bp/chrono/ChronoPeriod.java | 16 +- .../threeten/bp/chrono/ChronoPeriodImpl.java | 34 +- .../bp/chrono/ChronoZonedDateTime.java | 35 +- .../bp/chrono/ChronoZonedDateTimeImpl.java | 32 +- .../org/threeten/bp/chrono/Chronology.java | 43 +- .../main/java/org/threeten/bp/chrono/Era.java | 15 + .../threeten/bp/chrono/HijrahChronology.java | 42 +- .../org/threeten/bp/chrono/HijrahDate.java | 364 +++--- .../org/threeten/bp/chrono/HijrahEra.java | 26 +- .../org/threeten/bp/chrono/IsoChronology.java | 36 +- .../java/org/threeten/bp/chrono/IsoEra.java | 23 +- .../bp/chrono/JapaneseChronology.java | 50 +- .../org/threeten/bp/chrono/JapaneseDate.java | 30 +- .../org/threeten/bp/chrono/JapaneseEra.java | 32 +- .../threeten/bp/chrono/MinguoChronology.java | 49 +- .../org/threeten/bp/chrono/MinguoDate.java | 35 +- .../org/threeten/bp/chrono/MinguoEra.java | 23 +- .../bp/chrono/ThaiBuddhistChronology.java | 57 +- .../threeten/bp/chrono/ThaiBuddhistDate.java | 36 +- .../threeten/bp/chrono/ThaiBuddhistEra.java | 24 +- .../threeten/bp/format/DateTimeBuilder.java | 83 +- .../format/DateTimeFormatStyleProvider.java | 16 +- .../threeten/bp/format/DateTimeFormatter.java | 35 +- .../bp/format/DateTimeFormatterBuilder.java | 233 ++-- .../bp/format/DateTimeParseContext.java | 37 +- .../bp/format/DateTimeParseException.java | 15 + .../bp/format/DateTimePrintContext.java | 29 +- .../bp/format/DateTimeTextProvider.java | 26 +- .../org/threeten/bp/format/DecimalStyle.java | 19 +- .../org/threeten/bp/format/FormatStyle.java | 15 + .../org/threeten/bp/format/ResolverStyle.java | 15 + .../org/threeten/bp/format/SignStyle.java | 15 + .../SimpleDateTimeFormatStyleProvider.java | 16 +- .../bp/format/SimpleDateTimeTextProvider.java | 57 +- .../org/threeten/bp/format/TextStyle.java | 15 + .../org/threeten/bp/jdk8/Jdk8Methods.java | 19 +- .../org/threeten/bp/temporal/ChronoField.java | 20 +- .../org/threeten/bp/temporal/ChronoUnit.java | 17 + .../org/threeten/bp/temporal/IsoFields.java | 50 +- .../threeten/bp/temporal/JulianFields.java | 24 +- .../org/threeten/bp/temporal/Temporal.java | 15 + .../bp/temporal/TemporalAccessor.java | 3 +- .../bp/temporal/TemporalAdjuster.java | 15 + .../bp/temporal/TemporalAdjusters.java | 18 +- .../threeten/bp/temporal/TemporalAmount.java | 16 +- .../threeten/bp/temporal/TemporalField.java | 16 +- .../threeten/bp/temporal/TemporalQueries.java | 65 +- .../threeten/bp/temporal/TemporalQuery.java | 15 + .../threeten/bp/temporal/TemporalUnit.java | 15 + .../UnsupportedTemporalTypeException.java | 15 + .../org/threeten/bp/temporal/ValueRange.java | 30 +- .../org/threeten/bp/temporal/WeekFields.java | 28 +- .../threeten/bp/zone/StandardZoneRules.java | 54 +- .../bp/zone/TzdbZoneRulesCompiler.java | 1096 ----------------- .../bp/zone/TzdbZoneRulesProvider.java | 329 ----- .../bp/zone/ZoneOffsetTransition.java | 20 +- .../bp/zone/ZoneOffsetTransitionRule.java | 53 +- .../java/org/threeten/bp/zone/ZoneRules.java | 22 +- .../threeten/bp/zone/ZoneRulesBuilder.java | 88 +- .../threeten/bp/zone/ZoneRulesException.java | 15 + .../threeten/bp/zone/ZoneRulesProvider.java | 20 +- .../classlib/java/time/MockSimplePeriod.java | 7 +- .../time/TestDateTimesImplementation.java | 4 +- .../teavm/classlib/java/time/TestZoneId.java | 60 +- .../java/time/zone/TestZoneRulesBuilder.java | 82 +- 90 files changed, 2399 insertions(+), 2500 deletions(-) delete mode 100644 classlib/src/main/java/org/threeten/bp/zone/TzdbZoneRulesCompiler.java delete mode 100644 classlib/src/main/java/org/threeten/bp/zone/TzdbZoneRulesProvider.java diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index b41cb4279..c0cae6ecd 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -55,7 +55,6 @@