Ciao,

On Tue, Dec 17, 2019 at 10:43 PM Roberto Franchini
[email protected] [it-torino-java-jug]
<[email protected]> wrote:
>
>
>
> Ciao,
> oggi, parlando con i colleghi per prendere alcune decisioni architetturarli, 
> e' spuntata questa libreria:
>
> https://www.archunit.org/
>
> Ad esempio, voglio essere certo che i logger siano tutti private static final:
>
> @ArchTest
>     private final ArchRule loggers_should_be_private_static_final =
>             fields().that().haveRawType(Logger.class)
>                     .should().bePrivate()
>                     .andShould().beStatic()
>                     .andShould().beFinal()
>                     .because("we agreed on this convention");
>
>
> Qualcuno l'ha usata?

No.

Ma mi sembra di ricordare che abbiamo fatto lo stesso con una rule PMD.

-- 
Simone Bordet
---
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless.   Victoria Livschitz

Reply via email to