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:
igor%mir2.org 2004-08-14 15:07:50 +00:00
Родитель 0f600362d0
Коммит 8899a6261b
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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 };