From d3d1a7d2e80cb40bab8596d7d7afed8c6244b07e Mon Sep 17 00:00:00 2001 From: Scala Steward <43047562+scala-steward@users.noreply.github.com> Date: Sat, 18 Nov 2023 07:52:49 +0100 Subject: [PATCH] Update scalafmt-core to 3.7.17 (#290) --- .git-blame-ignore-revs | 3 +++ .scalafmt.conf | 2 +- core/src/main/scala/scroll/internal/util/Memoiser.scala | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 7ec7b199..49a52fa8 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,5 @@ # Scala Steward: Reformat with scalafmt 3.5.8 4a4997271adbb96c67fb6d739868f39bb233a3a1 + +# Scala Steward: Reformat with scalafmt 3.7.17 +c85a1ece75948f823582ec81655f8e7db15f5a4b diff --git a/.scalafmt.conf b/.scalafmt.conf index 8f50511a..03c38253 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.7.14" +version = "3.7.17" runner.dialect = scala3 preset = IntelliJ maxColumn = 120 diff --git a/core/src/main/scala/scroll/internal/util/Memoiser.scala b/core/src/main/scala/scroll/internal/util/Memoiser.scala index 1c4c7027..77c215c1 100644 --- a/core/src/main/scala/scroll/internal/util/Memoiser.scala +++ b/core/src/main/scala/scroll/internal/util/Memoiser.scala @@ -9,14 +9,14 @@ import com.google.common.cache.LoadingCache object Memoiser { /** Builds a cache, which either returns an already-loaded value for a given key or atomically computes or retrieves - * it using the supplied { @code supplier }. If another thread is currently loading the value for this key, simply + * it using the supplied {@code supplier} . If another thread is currently loading the value for this key, simply * waits for that thread to finish and returns its loaded value. Note that multiple threads can concurrently load * values for distinct keys. * * @param supplier - * the function to be used for loading values; must never return { @code null} + * the function to be used for loading values; must never return {@code null} * @return - * a cache loader that loads values by passing each key to { @code supplier} + * a cache loader that loads values by passing each key to {@code supplier} */ def buildCache[K <: AnyRef, V <: AnyRef](supplier: K => V): LoadingCache[K, V] = CacheBuilder.newBuilder().build[K, V](CacheLoader.from((k: K) => supplier(k)))