diff options
author | Paul Fisher <rao@gnu.org> | 1998-06-26 18:11:58 +0000 |
---|---|---|
committer | Paul Fisher <rao@gnu.org> | 1998-06-26 18:11:58 +0000 |
commit | 2ad6b8870f8269cc68043f7ef9dd8bbf0ce1c40f (patch) | |
tree | 75a74d112363e5774ad34fc8e545be6bfd81617e /doc | |
parent | be14f420e029d24020e0b5a9b09775bc9d334008 (diff) | |
download | classpath-2ad6b8870f8269cc68043f7ef9dd8bbf0ce1c40f.tar.gz |
Fix typo.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/jcl-hacking.texinfo | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/jcl-hacking.texinfo b/doc/jcl-hacking.texinfo index ca1604c67..ed896f0f6 100644 --- a/doc/jcl-hacking.texinfo +++ b/doc/jcl-hacking.texinfo @@ -318,19 +318,19 @@ argument is passed which is null, per a Sun specification, do not write code like: @example -int strlen(String foo) throws NullPointerException { +int strlen(String foo) throws NullPointerException @{ if (foo == null) throw new NullPointerException("foo is null"); return foo.length(); -} +@} @end example Instead, the code should be written as: @example -int strlen(String foo) throws NullPointerException { +int strlen(String foo) throws NullPointerException @{ return foo.length(); -} +@} @end example Explicitly comparing foo to null is unnecessary, as the virtual machine |