Broke long lines; no functional change.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136973 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Rall 2002-08-21 07:31:54 +00:00
parent 10c9649135
commit 0b3f9dcadc
1 changed files with 8 additions and 4 deletions

View File

@ -67,7 +67,7 @@ import java.util.StringTokenizer;
* @author <a href="mailto:dlr@collab.net">Daniel Rall</a>
* @author <a href="mailto:knielsen@apache.org">Kasper Nielsen</a>
* @author <a href="mailto:steven@caswell.name">Steven Caswell</a>
* @version $Id: NestableDelegate.java,v 1.3 2002/08/21 07:22:47 dlr Exp $
* @version $Id: NestableDelegate.java,v 1.4 2002/08/21 07:31:54 dlr Exp $
*/
public class NestableDelegate
{
@ -181,7 +181,9 @@ public class NestableDelegate
String[] msgs = new String[throwables.length];
for(int i = 0; i < throwables.length; i++)
{
msgs[i] = (Nestable.class.isInstance(throwables[i]) ? ((Nestable) throwables[i]).getMessage(0) : throwables[i].getMessage());
msgs[i] = (Nestable.class.isInstance(throwables[i]) ?
((Nestable) throwables[i]).getMessage(0) :
throwables[i].getMessage());
}
return msgs;
}
@ -272,12 +274,14 @@ public class NestableDelegate
{
if(fromIndex < 0)
{
throw new IndexOutOfBoundsException("Throwable index out of range: " + fromIndex);
throw new IndexOutOfBoundsException("Throwable index out of range: "
+ fromIndex);
}
Throwable throwables[] = this.getThrowables();
if(fromIndex >= throwables.length)
{
throw new IndexOutOfBoundsException("Throwable index out of range: " + fromIndex);
throw new IndexOutOfBoundsException("Throwable index out of range: "
+ fromIndex);
}
for(int i = fromIndex; i < throwables.length; i++)
{