Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler warnings #797

Open
kwalcock opened this issue Jun 28, 2023 · 1 comment
Open

Compiler warnings #797

kwalcock opened this issue Jun 28, 2023 · 1 comment
Assignees

Comments

@kwalcock
Copy link
Member

Let's take care of these:

[warn] D:\Users\kwa\Documents\MyData\Projects\clulab\reach-project\reach\processors\src\main\scala\org\clulab\processors\BioNLPProcessorFilesByLine.scala:22:23: method findFiles in object Files is deprecated (since 8.3.3): This call to findFiles is deprecated.  Please use org.clulab.utils.FileUtils.findFiles() instead.
[warn]     val files = Files.findFiles(args(0), EXT)
[warn]                       ^
[warn] one warning found
[info] compiling 95 Scala sources and 1 Java source to D:\Users\kwa\Documents\MyData\Projects\clulab\reach-project\reach\main\target\scala-2.12\classes ...
[warn] D:\Users\kwa\Documents\MyData\Projects\clulab\reach-project\reach\main\src\main\scala\org\clulab\reach\brat\Brat.scala:259:29: match may not be exhaustive.
[warn] It would fail on the following input: (_, _)
[warn]     tbs.zipWithIndex.foreach{
[warn]                             ^
[warn] D:\Users\kwa\Documents\MyData\Projects\clulab\reach-project\reach\main\src\main\scala\org\clulab\reach\utils\PathFinder.scala:44:62: match may not be exhaustive.
[warn] It would fail on the following inputs: (??, _, _), (_, ??, _), (_, _, _)
[warn]           for (((n1, n2), edge) <- pairs zip edgePath) yield edge match {
[warn]                                                              ^
[warn] two warnings found
[info] compiling 38 Scala sources to D:\Users\kwa\Documents\MyData\Projects\clulab\reach-project\reach\assembly\target\scala-2.12\classes ...
[warn] D:\Users\kwa\Documents\MyData\Projects\clulab\reach-project\reach\assembly\src\main\scala\org\clulab\reach\assembly\AssemblyManager.scala:777:63: match may not be exhaustive.
[warn] It would fail on the following input: (_, _)
[warn]         val input: Map[String, Set[IDPointer]] = themeMap map {
[warn]                                                               ^
[warn] D:\Users\kwa\Documents\MyData\Projects\clulab\reach-project\reach\assembly\src\main\scala\org\clulab\reach\assembly\relations\classifier\PathFinder.scala:57:62: match may not be exhaustive.
[warn] It would fail on the following inputs: (??, _, _), (_, ??, _), (_, _, _)
[warn]           for (((n1, n2), edge) <- pairs zip edgePath) yield edge match {
[warn]                                                              ^
[warn] D:\Users\kwa\Documents\MyData\Projects\clulab\reach-project\reach\assembly\src\main\scala\org\clulab\reach\assembly\relations\corpus\CorpusBuilder.scala:34:54: object JavaConversions in package collection is deprecated (since 2.12.0): use JavaConverters
[warn]   val validLabels: Set[String] = config.getStringList("assembly.corpus.validLabels").toSet
[warn]                                                      ^
[warn] three warnings found
@kwalcock kwalcock self-assigned this Jun 28, 2023
@MihaiSurdeanu
Copy link
Contributor

Yep

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

No branches or pull requests

2 participants