On 10/28/14 8:46 AM, Benedikt Ritter wrote:
> 2014-10-28 13:18 GMT+01:00 Gary Gregory <garydgreg...@gmail.com>:
>
>> On Tue, Oct 28, 2014 at 5:52 AM, Torsten Curdt <tcu...@vafer.org> wrote:
>>
>>>> You know that Java has no out variables (as it is call by value) and
>> the
>>>> final identifier does not make an object read only. So in fact having
>>> final
>>>> modifiers would misslead you even more.
>>>>
>>> The last sentence is a bit of theory. I don't see that to be true for me
>> at
>>> least.
>>>
>>> Following some of the arguments in this thread declarations like "const"
>> or
>>> "let" are just noise. I could say the same thing about the stupid
>>> "override" annotation everyone keeps using. Taking that a step (or
>> rather a
>>> few steps) further it makes you wonder why some people here prefer a
>>> statically typed language like java over dynamic ones.
>>>
>>> Anyway - I do think "final" has value. Not sure I would want to have it
>>> everywhere though.
>>> But the point is: everyone has a different opinion on this.
>>>
>>> I have a hard time seeing value in this thread

Hi Torsten!  (there is the value in this thread ;)

>>>  unless there is a more
>>> concrete objective or question to answer.
>>> These could be...
>>>
>>> "Are stylistic commits acceptable?"
>>> "Do we want to enforce a common code style?"
>>>
>> Some components already do explicitly define a style through Checkstyle and
>> PMD or implicitly with the general guideline of "follow the style of the
>> file you are in" I've seen listed on a guideline page.
>>
> If you're actively working on BeanUtils and help with applying existing
> patches, fine.
> If you're just jumping in to add final everywhere but are not working on
> the component, I'd rather revert the commit.

I disagree.  People contribute here in different ways and as long as
what they are doing is OK with the community and people are at least
+0 on the changes, we should thank them for it.  I used to think all
the final stuff was useless, but have come around to +0-ish to the
point that I don't make Gilles clean up after me so much on [math]
any more.  In any case, I don't see it damaging the code and I agree
with Mark that patch aging is a separate issue.

Phil


>
>
>> Some Apache projects (HC for example IIRC) cause the build to fail is a
>> Checkstyle rule is broken.
>>
>> Gary
>>
>>
>>> Maybe answer those first?
>>>
>>> cheers,
>>> Torsten
>>>
>>
>>
>> --
>> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
>> Java Persistence with Hibernate, Second Edition
>> <http://www.manning.com/bauer3/>
>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>> Spring Batch in Action <http://www.manning.com/templier/>
>> Blog: http://garygregory.wordpress.com
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
>>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to