Skip to content

Commit 0ef17a2

Browse files
committed
NestedIOException can use IOException constructor with cause argument on JDK 6+
(cherry picked from commit c18b6bf)
1 parent 4522603 commit 0ef17a2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-core/src/main/java/org/springframework/core/NestedIOException.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -60,8 +60,7 @@ public NestedIOException(String msg) {
6060
* @param cause the nested exception
6161
*/
6262
public NestedIOException(String msg, Throwable cause) {
63-
super(msg);
64-
initCause(cause);
63+
super(msg, cause);
6564
}
6665

6766

0 commit comments

Comments
 (0)