зеркало из https://github.com/mozilla/pjs.git
Changing Kit.initCause to take and return RuntimeException: this is how it is supposed to be used, that is wrap checkable exceptions into uncheckable RuntimeExceptions.
This commit is contained in:
Родитель
682b343169
Коммит
f0b2a92e18
|
@ -112,7 +112,8 @@ public class Kit
|
|||
* <tt>ex.initCause(cause)</tt> or otherwise do nothing.
|
||||
* @return The <tt>ex</tt> argument.
|
||||
*/
|
||||
public static Throwable initCause(Throwable ex, Throwable cause)
|
||||
public static RuntimeException initCause(RuntimeException ex,
|
||||
Throwable cause)
|
||||
{
|
||||
if (Throwable_initCause != null) {
|
||||
Object[] args = { cause };
|
||||
|
|
Загрузка…
Ссылка в новой задаче