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

fix Auto-application warnings #605

Merged
merged 1 commit into from
Jan 23, 2022

Conversation

xuwei-k
Copy link
Contributor

@xuwei-k xuwei-k commented Jul 13, 2021

[warn] /home/travis/build/playframework/play-slick/src/core/src/test/scala/play/api/db/slick/SlickApiSpec.scala:51:20: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method dbConfigs,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]       api.dbConfigs[BasicProfile] must have size 4
[warn]                    ^
[warn] /home/travis/build/playframework/play-slick/src/core/src/test/scala/play/api/db/slick/SlickApiSpec.scala:55:20: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method dbConfigs,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]       api.dbConfigs[BasicProfile] must throwA[PlayException]
[warn]                    ^
[warn] /home/travis/build/playframework/play-slick/src/core/src/test/scala/play/api/db/slick/SlickApiSpec.scala:59:20: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method dbConfigs,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]       api.dbConfigs[BasicProfile] must throwA[PlayException]
[warn]                    ^
[warn] /home/travis/build/playframework/play-slick/samples/computer-database/app/controllers/Application.scala:76:18: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method bindFromRequest,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]     computerForm.bindFromRequest.fold(
[warn]                  ^
[warn] /home/travis/build/playframework/play-slick/samples/computer-database/app/controllers/Application.scala:92:18: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method bindFromRequest,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]     computerForm.bindFromRequest.fold(
[warn]                  ^
[warn] /home/travis/build/playframework/play-slick/samples/basic/app/controllers/Application.scala:36:28: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method bindFromRequest,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]     val cat: Cat = catForm.bindFromRequest.get
[warn]                            ^
[warn] /home/travis/build/playframework/play-slick/samples/basic/app/controllers/Application.scala:41:28: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method bindFromRequest,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]     val dog: Dog = dogForm.bindFromRequest.get
[warn]                            ^

```
[warn] /home/travis/build/playframework/play-slick/src/core/src/test/scala/play/api/db/slick/SlickApiSpec.scala:51:20: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method dbConfigs,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]       api.dbConfigs[BasicProfile] must have size 4
[warn]                    ^
[warn] /home/travis/build/playframework/play-slick/src/core/src/test/scala/play/api/db/slick/SlickApiSpec.scala:55:20: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method dbConfigs,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]       api.dbConfigs[BasicProfile] must throwA[PlayException]
[warn]                    ^
[warn] /home/travis/build/playframework/play-slick/src/core/src/test/scala/play/api/db/slick/SlickApiSpec.scala:59:20: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method dbConfigs,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]       api.dbConfigs[BasicProfile] must throwA[PlayException]
[warn]                    ^
```

```
[warn] /home/travis/build/playframework/play-slick/samples/computer-database/app/controllers/Application.scala:76:18: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method bindFromRequest,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]     computerForm.bindFromRequest.fold(
[warn]                  ^
[warn] /home/travis/build/playframework/play-slick/samples/computer-database/app/controllers/Application.scala:92:18: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method bindFromRequest,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]     computerForm.bindFromRequest.fold(
[warn]                  ^
```

```
[warn] /home/travis/build/playframework/play-slick/samples/basic/app/controllers/Application.scala:36:28: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method bindFromRequest,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]     val cat: Cat = catForm.bindFromRequest.get
[warn]                            ^
[warn] /home/travis/build/playframework/play-slick/samples/basic/app/controllers/Application.scala:41:28: Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method bindFromRequest,
[warn] or remove the empty argument list from its definition (Java-defined methods are exempt).
[warn] In Scala 3, an unapplied method like this will be eta-expanded into a function.
[warn]     val dog: Dog = dogForm.bindFromRequest.get
[warn]                            ^
```
@mkurz mkurz merged commit 4f9e296 into playframework:master Jan 23, 2022
@xuwei-k xuwei-k deleted the auto-application-warnings branch January 23, 2022 22:01
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.

None yet

3 participants