java.io.Console strange code style
Roger.Riggs at oracle.com
Tue Nov 13 15:14:28 UTC 2018
You are seeing the result of a much older style that put the public methods
first and implementation later and incremental additions over 20 years.
It has been very stable and has otherwise been left alone and investments
made in other areas.
On 11/11/2018 09:17 AM, Morteza Adigozalpour wrote:
> This is how the class is structured:
> -starts with some public methods
> -followed by a private method
> -more public methods
> -fields declaration
> -native methods
> -private methods
> -class declaration
> -static initializer block
> -static field
> -a native method
> I am not sure whether the style guideline (here
> <http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html>) are being
> used in openjdk community or not,
> based on that I expected something like this,
> -Factory methods
> -Other Methods
> any how regardless of the draft, I believe* java.io.Console* should be
> reorganized to increase readability.
> On Sun, Nov 11, 2018 at 1:49 PM Pavel Rappo <pavel.rappo at oracle.com> wrote:
>>> On 10 Nov 2018, at 20:06, Morteza Adigozalpour <mortezaadi at gmail.com>
>>> I was reading java.io.Console class, I wonder why the class organized
>> Could you be more specific?
More information about the jdk-dev