This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi Michael, This patch is fine and I will check it in. Just a few minor style fixes: Michael Koch wrote:
Here we don't generally declare "throws NullPointerException, IllegalArgumentException" because its redundant - they arn't checked exceptions.public URISyntaxException(String input, String reason, int index) throws NullPointerException, IllegalArgumentException
{The code following "if", "for", etc statements should go on the next line and be indented, ie:
if (input == null || reason == null) throw new NullPointerException();
if (index < -1) throw new IllegalArgumentException();
public String getMessage()There should be spaces between the +'s here.
{
return input+":"+reason;
}
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |