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 warnings #11749

Merged
merged 1 commit into from
Apr 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion testkit/play-test/src/test/java/play/test/HelpersTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void shouldSuccessfullyExecutePostRequestWithEmptyBody() {
@Test
public void shouldSuccessfullyExecutePostRequestWithMultipartFormData() {
Application app = Helpers.fakeApplication();
Map<String, String[]> postParams = new java.util.HashMap();
Map<String, String[]> postParams = new java.util.HashMap<>();
postParams.put("key", new String[] {"value"});
Http.RequestBuilder request =
new Http.RequestBuilder().method(POST).bodyMultipart(postParams, Collections.emptyList());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import scala.util.Failure
import scala.util.Success
import scala.util.Try

import com.google.common.io.{ Files => GFiles }
import org.specs2.mutable.Specification
import play.api.Mode
import play.api.Play
Expand Down Expand Up @@ -90,7 +89,7 @@ class ProdServerStartSpec extends Specification {
sequential

def withTempDir[T](block: File => T) = {
val temp = GFiles.createTempDir()
val temp = Files.createTempDirectory("tmp").toFile
try {
block(temp)
} finally {
Expand Down