Skip to content

Commit

Permalink
Update scalafmt-core to 3.7.17 (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
scala-steward authored Nov 18, 2023
1 parent ace128e commit d3d1a7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Scala Steward: Reformat with scalafmt 3.5.8
4a4997271adbb96c67fb6d739868f39bb233a3a1

# Scala Steward: Reformat with scalafmt 3.7.17
c85a1ece75948f823582ec81655f8e7db15f5a4b
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.7.14"
version = "3.7.17"
runner.dialect = scala3
preset = IntelliJ
maxColumn = 120
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/scala/scroll/internal/util/Memoiser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit d3d1a7d

Please sign in to comment.