[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Javaweb-people] So are we agreed?
From: |
Nic Ferrier |
Subject: |
Re: [Javaweb-people] So are we agreed? |
Date: |
31 Jan 2002 23:08:28 +0000 |
Brian Jones <address@hidden> writes:
> Nic Ferrier <address@hidden> writes:
>
> > Therefore, if I may, I'd like to take the decision that we DO indent
> > these decls.
>
> I wasn't disagreeing with the indention, it's just that typically it
> isn't required because the whole thing fits neatly on a single line
> already. I guess something that throws multiple exceptions and
> implements multiple interefaces will look like below?
>
> public class foo
> extends elmo
> implements Bar,
> Tom,
> HenryInterface
> throws BadDataException,
> IllegalFormatError
> {
> ...
I hope not.
This is the syntax I use in Paperclips:
public class foo
extends elmo
implements Bar, Tom, HenryInterface, ANInterface
AnotherInterface
{
btw I don't think a class can throw an exception /8->
Here's a method decl with a long exception list:
public void someMethod (String a)
throws IOException, IllegalStateException,
ArrayIndexOutOfBoundsException
{
...
}
In other words the decls get their own lines but are then treated in
much the same way as argument lists.
That seems logical to me.
Is it acceptable?
Nic
- Re: [Javaweb-people] So are we agreed?, (continued)
- Re: [Javaweb-people] So are we agreed?, Tom Tromey, 2002/01/31
- Re: [Javaweb-people] So are we agreed?, Brian Jones, 2002/01/31
- Re: [Javaweb-people] So are we agreed?, Nic Ferrier, 2002/01/31
- Re: [Javaweb-people] So are we agreed?, Per Bothner, 2002/01/31
- Re: [Javaweb-people] So are we agreed?, Nic Ferrier, 2002/01/31
- Re: [Javaweb-people] So are we agreed?, Per Bothner, 2002/01/31
- Re: [Javaweb-people] So are we agreed?, Nic Ferrier, 2002/01/31
- Re: [Javaweb-people] So are we agreed?, Brian Jones, 2002/01/31
- Re: [Javaweb-people] So are we agreed?,
Nic Ferrier <=
- Re: [Javaweb-people] So are we agreed?, Tom Tromey, 2002/01/31
Re: [Javaweb-people] So are we agreed?, Bryce McKinlay, 2002/01/31