You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Glen Mazza <gl...@verizon.net> on 2007/10/27 01:45:36 UTC
Re: svn commit: r588283 [14/18] - in /incubator/cxf/branches/jliu: ./
api/ api/src/main/java/org/apache/cxf/databinding/
api/src/main/java/org/apache/cxf/io/ api/src/main/java/org/apache/cxf/message/
api/src/main/java/org/apache/cxf/phase/ api/src/main/jav...
Am Donnerstag, den 25.10.2007, 17:10 +0000 schrieb jliu@apache.org:
> Modified: incubator/cxf/branches/jliu/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaMethod.java
> URL: http://svn.apache.org/viewvc/incubator/cxf/branches/jliu/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaMethod.java?rev=588283&r1=588282&r2=588283&view=diff
> ==============================================================================
> --- incubator/cxf/branches/jliu/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaMethod.java (original)
> +++ incubator/cxf/branches/jliu/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaMethod.java Thu Oct 25 10:09:20 2007
> +
> + public final void setAsync(final boolean newAsync) {
> + this.async = newAsync;
> }
Hmmm. Pardon the Java 101 question, but what does the "final" qualifier
on the newAsync argument signify?
Thanks,
Glen
Re: svn commit: r588283 [14/18] - in /incubator/cxf/branches/jliu: ./ api/ api/src/main/java/org/apache/cxf/databinding/ api/src/main/java/org/apache/cxf/io/ api/src/main/java/org/apache/cxf/message/ api/src/main/java/org/apache/cxf/phase/ api/src/main/jav...
Posted by Daniel Kulp <dk...@apache.org>.
Glen,
On Friday 26 October 2007, Glen Mazza wrote:
> Am Donnerstag, den 25.10.2007, 17:10 +0000 schrieb jliu@apache.org:
> > Modified:
> > + public final void setAsync(final boolean newAsync) {
> > + this.async = newAsync;
> > }
>
> Hmmm. Pardon the Java 101 question, but what does the "final"
> qualifier on the newAsync argument signify?
>
> Thanks,
> Glen
For primitives like booleans, it basically means the variable is "const"
and cannot be changed. For non-primitives, it means the variable
cannot be assigned a new value, but the object it does point to can be
modified (getters/setters/etc...). The main use for having a final
parameter is if your method then creates an anonymous inner class or
similar that needs access to it. In that case, it would need to be
final or the compiler will complain.
--
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727 C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog
RE: svn commit: r588283 [14/18] - in /incubator/cxf/branches/jliu: ./ api/ api/src/main/java/org/apache/cxf/databinding/api/src/main/java/org/apache/cxf/io/ api/src/main/java/org/apache/cxf/message/api/src/main/java/org/apache/cxf/phase/ api/src/main/jav.
Posted by "Liu, Jervis" <jl...@iona.com>.
I wonder as well, this "final" qualifier does not seem to be needed. This changed is merged from trunk to jsr-311 branch, which was originally checked in by James in REV 575213. James, it is a call for you now. :-)
Cheers,
Jervis
> -----Original Message-----
> From: Glen Mazza [mailto:glen.mazza@verizon.net]
> Sent: 2007?10?27? 7:46
> To: cxf-dev@incubator.apache.org
> Subject: Re: svn commit: r588283 [14/18] - in
> /incubator/cxf/branches/jliu: ./ api/
> api/src/main/java/org/apache/cxf/databinding/api/src/main/java
> /org/apache/cxf/io/
> api/src/main/java/org/apache/cxf/message/api/src/main/java/org
> /apache/cxf/phase/ api/src/main/jav.
>
>
> Am Donnerstag, den 25.10.2007, 17:10 +0000 schrieb jliu@apache.org:
> > Modified:
> incubator/cxf/branches/jliu/tools/common/src/main/java/org/apa
> che/cxf/tools/common/model/JavaMethod.java
> > URL:
> http://svn.apache.org/viewvc/incubator/cxf/branches/jliu/tools
> /common/src/main/java/org/apache/cxf/tools/common/model/JavaMe
> thod.java?rev=588283&r1=588282&r2=588283&view=diff
> >
> ==============================================================
> ================
> > ---
> incubator/cxf/branches/jliu/tools/common/src/main/java/org/apa
> che/cxf/tools/common/model/JavaMethod.java (original)
> > +++
> incubator/cxf/branches/jliu/tools/common/src/main/java/org/apa
> che/cxf/tools/common/model/JavaMethod.java Thu Oct 25 10:09:20 2007
> > +
> > + public final void setAsync(final boolean newAsync) {
> > + this.async = newAsync;
> > }
>
> Hmmm. Pardon the Java 101 question, but what does the
> "final" qualifier
> on the newAsync argument signify?
>
> Thanks,
> Glen
>
>
>
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland