Skip to content

fix warnings - #1595

Merged
eed3si9n merged 1 commit into
sbt:developfrom
xuwei-k:fix-warn
Sep 20, 2025
Merged

fix warnings#1595
eed3si9n merged 1 commit into
sbt:developfrom
xuwei-k:fix-warn

Conversation

@xuwei-k

@xuwei-k xuwei-k commented Sep 20, 2025

Copy link
Copy Markdown
Member

No description provided.

val varArgPosition = if (varArgs) paramTypes.length - 1 else -1
val isVarArg = List.tabulate(paramTypes.length)(_ == varArgPosition)
val pa = (paramAnnots, paramTypes, isVarArg).zipped map {
val pa = paramAnnots.lazyZip(paramTypes).lazyZip(isVarArg).map {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[warn] -- Deprecation Warning: /home/runner/work/zinc/zinc/internal/zinc-apiinfo/src/main/scala/sbt/internal/inc/ClassToAPI.scala:387:49 
[warn] 387 |    val pa = (paramAnnots, paramTypes, isVarArg).zipped map {
[warn]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[warn]     |method zipped in class Ops is deprecated since 2.13.0: Use xs.lazyZip(ys).lazyZip(zs)

unorderedHash(new HashIterator(ts.iterator))
case _ =>
unorderedHash(ts.toList.map { t =>
unorderedHash(ts.iterator.to(List).map { t =>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[warn] -- Deprecation Warning: /home/runner/work/zinc/zinc/internal/zinc-apiinfo/src/main/scala/xsbt/api/HashAPI.scala:159:25 
[warn] 159 |        unorderedHash(ts.toList.map { t =>
[warn]     |                      ^^^^^^^^^
[warn]     |method toList in class IterableOnceExtensionMethods is deprecated since 2.13.0: Use .iterator.to(List) instead

}

private var tempDir: Path = _
private var tempDir: Path = compiletime.uninitialized

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[warn] -- Warning: /home/runner/work/zinc/zinc/internal/zinc-classfile/src/main/scala/sbt/internal/inc/JarUtils.scala:277:30 
[warn] 277 |  private var tempDir: Path = _
[warn]     |                              ^
[warn]     |`= _` has been deprecated; use `= uninitialized` instead.
[warn]     |`uninitialized` can be imported with `scala.compiletime.uninitialized`.

import xsbti.ArtifactInfo.ScalaOrganization
import sbt.io.IO
import scala.language.reflectiveCalls
import scala.reflect.Selectable.reflectiveSelectable

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[warn] -- Deprecation Warning: /home/runner/work/zinc/zinc/internal/zinc-classpath/src/main/scala/sbt/internal/inc/ScalaInstance.scala:211:72 
[warn] 211 |          case p: ScalaProvider2 @unchecked => Option((provider.loader, p.loaderLibraryOnly))
[warn]     |                                                                        ^
[warn]     |method reflectiveSelectableFromLangReflectiveCalls in object Selectable is deprecated since 3.0: import scala.reflect.Selectable.reflectiveSelectable instead of scala.language.reflectiveCalls

@eed3si9n eed3si9n left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@eed3si9n
eed3si9n merged commit f4dec3a into sbt:develop Sep 20, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants