提交 dd04e1d6 编写于 作者: B bpb

8190501: (fs) Incorrect error message parameter in java/nio/file/Files/probeContentType/Basic.java

Summary: Replace expectedTypes with expectedTypes[i] in the line in question.
Reviewed-by: alanb
上级 89aa45e5
/*
* Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -114,7 +114,7 @@ public class Basic {
failures++;
} else if (!type.equals(expectedTypes[i])) {
System.err.printf("Content type: %s; expected: %s%n",
type, expectedTypes);
type, expectedTypes[i]);
failures++;
}
} finally {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册