diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 000000000..84f150a84 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.7.13 +f872257dee6eaeb9810d77b3ded0bfd6784cafce diff --git a/.scalafmt.conf b/.scalafmt.conf index 542bc5581..6bf4fa75d 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.7.11" +version = "3.7.13" runner.dialect = scala213 maxColumn = 100 project.git = true diff --git a/mdoc/src/main/scala/mdoc/internal/CompatClassloader.scala b/mdoc/src/main/scala/mdoc/internal/CompatClassloader.scala index 53382a5b9..f8a5b65ae 100644 --- a/mdoc/src/main/scala/mdoc/internal/CompatClassloader.scala +++ b/mdoc/src/main/scala/mdoc/internal/CompatClassloader.scala @@ -25,7 +25,7 @@ object CompatClassloader { .startsWith("jdk.internal.loader.ClassLoaders$") ) { try { - val unsafeClass = classLoader.loadClass("sun.misc.Unsafe") + val unsafeClass = classLoader.loadClass("sun.misc.Unsafe") val field = unsafeClass.getDeclaredField("theUnsafe") field.setAccessible(true) val unsafe = field.get(null) @@ -39,7 +39,7 @@ object CompatClassloader { classLoader.getClass() } }.getDeclaredField("ucp") - + def objectFieldOffset(field: java.lang.reflect.Field): Long = unsafeClass .getMethod( @@ -62,7 +62,7 @@ object CompatClassloader { val ucpFieldOffset = objectFieldOffset(ucpField) val ucpObject = getObject(classLoader, ucpFieldOffset) - val pathField = ucpField.getType().getDeclaredField("path") + val pathField = ucpField.getType().getDeclaredField("path") val pathFieldOffset = objectFieldOffset(pathField) val paths: Seq[URL] = getObject(ucpObject, pathFieldOffset) .asInstanceOf[java.util.ArrayList[URL]]