Skip to content

Commit 66afe64

Browse files
committed
Reformat with scalafmt 3.10.1
Executed command: scalafmt --non-interactive
1 parent a8dcd77 commit 66afe64

File tree

70 files changed

+499
-504
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+499
-504
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
160160
.disablePlugins(TypelevelScalaJSGitHubPlugin)
161161
.settings(commonSettings)
162162
.settings(
163-
name := "scala-java-time",
163+
name := "scala-java-time",
164164
libraryDependencies += ("org.portable-scala" %%% "portable-scala-reflect" % "1.1.3")
165165
.cross(CrossVersion.for3Use2_13)
166166
)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package java.util
22

33
class SimpleTimeZone(rawOffset: Int, var ID: String) extends TimeZone {
4-
override def getRawOffset = rawOffset
4+
override def getRawOffset = rawOffset
55
/* concrete methods */
6-
override def getID: String = ID
6+
override def getID: String = ID
77
override def setID(id: String): Unit = ID = id
88

99
}

core/js/src/main/scala/java/util/TimeZone.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ object TimeZone {
5151
new SimpleTimeZone(offsetInMillis, timeZone)
5252
}
5353

54-
def getDefault: TimeZone = default
54+
def getDefault: TimeZone = default
5555
def setDefault(timeZone: TimeZone): Unit = default = timeZone
5656

5757
def getTimeZone(timeZone: String): TimeZone = getTimeZone(ZoneId.of(timeZone))
58-
def getTimeZone(zoneId: ZoneId): TimeZone = {
58+
def getTimeZone(zoneId: ZoneId): TimeZone = {
5959
val rules = zoneId.getRules
6060
val offsetInMillis = rules.getStandardOffset(Instant.now).getTotalSeconds * 1000
6161
new SimpleTimeZone(offsetInMillis, zoneId.getId)
@@ -80,7 +80,7 @@ abstract class TimeZone extends Serializable with Cloneable {
8080
// def useDaylightTime: Boolean
8181

8282
/* concrete methods */
83-
def getID: String = ID
83+
def getID: String = ID
8484
def setID(id: String): Unit = ID = id
8585

8686
def getDisplayName(daylight: Boolean, style: Int, locale: Locale): String = {

core/jvm/src/main/scala/org/threeten/bp/chrono/HijrahDateConfigurator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ object HijrahDateConfigurator {
8888
case _: NumberFormatException =>
8989
throw new ParseException(s"Offset is not properly set at line $num.", num)
9090
}
91-
val separatorIndex: Int = deviationElement.indexOf('-')
91+
val separatorIndex: Int = deviationElement.indexOf('-')
9292
if (separatorIndex != -1) {
9393
val startDateStg: String = deviationElement.substring(0, separatorIndex)
9494
val endDateStg: String = deviationElement.substring(separatorIndex + 1, offsetIndex)

core/jvm/src/main/scala/org/threeten/bp/chrono/JapaneseChronology.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ final class JapaneseChronology private () extends Chronology with Serializable {
194194
* @throws DateTimeException
195195
* if unable to create the date
196196
* @throws ClassCastException
197-
* if the { @code era} is not a { @code JapaneseEra}
197+
* if the {@code era} is not a {@code JapaneseEra}
198198
*/
199199
override def dateYearDay(era: Era, yearOfEra: Int, dayOfYear: Int): JapaneseDate =
200200
if (!era.isInstanceOf[JapaneseEra]) throw new ClassCastException("Era must be JapaneseEra")
@@ -283,9 +283,9 @@ final class JapaneseChronology private () extends Chronology with Serializable {
283283
* @param eraValue
284284
* the era value
285285
* @return
286-
* the Japanese { @code Era} for the given numeric era value
286+
* the Japanese {@code Era} for the given numeric era value
287287
* @throws DateTimeException
288-
* if { @code eraValue} is invalid
288+
* if {@code eraValue} is invalid
289289
*/
290290
def eraOf(eraValue: Int): JapaneseEra = JapaneseEra.of(eraValue)
291291

core/jvm/src/main/scala/org/threeten/bp/chrono/JapaneseDate.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ object JapaneseDate {
222222
* @return
223223
* the date in Japanese calendar system, not null
224224
* @throws DateTimeException
225-
* if unable to convert to a { @code JapaneseDate}
225+
* if unable to convert to a {@code JapaneseDate}
226226
*/
227227
def from(temporal: TemporalAccessor): JapaneseDate = JapaneseChronology.INSTANCE.date(temporal)
228228

@@ -418,9 +418,9 @@ final class JapaneseDate private[chrono] (
418418
* @param yearOfEra
419419
* the year-of-era to set in the returned date
420420
* @return
421-
* a { @code JapaneseDate} based on this date with the requested year, never null
421+
* a {@code JapaneseDate} based on this date with the requested year, never null
422422
* @throws DateTimeException
423-
* if { @code year} is invalid
423+
* if {@code year} is invalid
424424
*/
425425
private def withYear(era: JapaneseEra, yearOfEra: Int): JapaneseDate = {
426426
val year: Int = JapaneseChronology.INSTANCE.prolepticYear(era, yearOfEra)
@@ -438,9 +438,9 @@ final class JapaneseDate private[chrono] (
438438
* @param year
439439
* the year to set in the returned date
440440
* @return
441-
* a { @code JapaneseDate} based on this date with the requested year-of-era, never null
441+
* a {@code JapaneseDate} based on this date with the requested year-of-era, never null
442442
* @throws DateTimeException
443-
* if { @code year} is invalid
443+
* if {@code year} is invalid
444444
*/
445445
private def withYear(year: Int): JapaneseDate = withYear(getEra, year)
446446

core/jvm/src/main/scala/org/threeten/bp/chrono/JapaneseEra.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ object JapaneseEra {
8686
* Obtains an instance of {@code JapaneseEra} from an {@code int} value.
8787
*
8888
* The {@link #SHOWA} era that contains 1970-01-01 (ISO calendar system) has the value 1 Later era
89-
* is numbered 2 ({@link #HEISEI}). Earlier eras are numbered 0 ({@link #TAISHO}),
90-
* -1 ({@link #MEIJI}), only Meiji and later eras are supported.
89+
* is numbered 2 ({@link #HEISEI}). Earlier eras are numbered 0 ({@link #TAISHO}), -1 ({@link
90+
* #MEIJI}), only Meiji and later eras are supported.
9191
*
9292
* @param japaneseEra
9393
* the era to represent
9494
* @return
95-
* the { @code JapaneseEra} singleton, not null
95+
* the {@code JapaneseEra} singleton, not null
9696
* @throws DateTimeException
9797
* if the value is invalid
9898
*/
@@ -112,7 +112,7 @@ object JapaneseEra {
112112
* @param japaneseEra
113113
* the japaneseEra name; non-null
114114
* @return
115-
* the { @code JapaneseEra} singleton, never null
115+
* the {@code JapaneseEra} singleton, never null
116116
* @throws IllegalArgumentException
117117
* if there is not JapaneseEra with the specified name
118118
*/

core/jvm/src/main/scala/org/threeten/bp/chrono/internal/TTBPJapaneseEra.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ object TTBPJapaneseEra {
1919
* @param name
2020
* the name
2121
* @return
22-
* the { @code JapaneseEra} singleton, not null
22+
* the {@code JapaneseEra} singleton, not null
2323
* @throws DateTimeException
2424
* if an additional era has already been registered
2525
*/
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package java.util
22

33
class SimpleTimeZone(rawOffset: Int, var ID: String) extends TimeZone {
4-
override def getRawOffset = rawOffset
4+
override def getRawOffset = rawOffset
55
/* concrete methods */
6-
override def getID: String = ID
6+
override def getID: String = ID
77
override def setID(id: String): Unit = ID = id
88

99
}

core/native/src/main/scala/java/util/TimeZone.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ object TimeZone {
1313
// TODO: implement this functionality, perhaps using https://github.com/scala-native/scala-native/blob/master/posixlib/src/main/scala/scala/scalanative/posix/time.scala
1414
new SimpleTimeZone(0, "UTC")
1515

16-
def getDefault: TimeZone = default
16+
def getDefault: TimeZone = default
1717
def setDefault(timeZone: TimeZone): Unit = default = timeZone
1818

1919
def getTimeZone(timeZone: String): TimeZone = getTimeZone(ZoneId.of(timeZone))
20-
def getTimeZone(zoneId: ZoneId): TimeZone = {
20+
def getTimeZone(zoneId: ZoneId): TimeZone = {
2121
val rules = zoneId.getRules
2222
val offsetInMillis = rules.getStandardOffset(Instant.now).getTotalSeconds * 1000
2323
new SimpleTimeZone(offsetInMillis, zoneId.getId)
@@ -42,7 +42,7 @@ abstract class TimeZone extends Serializable with Cloneable {
4242
// def useDaylightTime: Boolean
4343

4444
/* concrete methods */
45-
def getID: String = ID
45+
def getID: String = ID
4646
def setID(id: String): Unit = ID = id
4747

4848
def getDisplayName(daylight: Boolean, style: Int, locale: Locale): String = {

0 commit comments

Comments
 (0)