Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[hono-dev] Code style - alignment of fields

Hi,

when formatting the code using the checked-in eclipse code style settings, the alignment of fields looks odd;
e.g.
VertxBasedRestProtocolAdapter:

    private HttpServer                                              server;
    private HonoClient                                              hono;
    private HonoConfigProperties                                    config;

    private BiConsumer<String, Handler<AsyncResult<MessageSender>>> eventSenderSupplier;
    private BiConsumer<String, Handler<AsyncResult<MessageSender>>> telemetrySenderSupplier;



With the additional eclipse formatter setting "Blank lines separating independent groups: 1", it would look better:

    private HttpServer           server;
    private HonoClient           hono;
    private HonoConfigProperties config;

    private BiConsumer<String, Handler<AsyncResult<MessageSender>>> eventSenderSupplier;
    private BiConsumer<String, Handler<AsyncResult<MessageSender>>> telemetrySenderSupplier;


Or can the field alignment setting be disabled altogether?
Many classes are currently not formatted according to this setting anyway (also

VertxBasedRestProtocolAdapter).

--
Best regards

Carsten Lohmann

Bosch Software Innovations GmbH
Schöneberger Ufer 89-91
10785 Berlin
GERMANY


Back to the top