mercredi 3 juin 2015

How to setup a SonarQube Warning for parallel streams in a Java EE container?

My scenario: With Java 8 Stream API, developers have the possibility to process collection via Streams normal and parallel (using multiple threads). In a Java EE environment, this should be avoided → Is it discouraged using Java 8 parallel streams inside a Java EE container? Other sources:

The current consensus among Java™ EE engineers is that parallelization of bulk operations will revert to sequential processing in the EE container. http://ift.tt/1dxa73I

Will SonarQube provide a rule, or how could I setup a custom rule for that, to detect, warn or inform developers, that they shall not used parallel streams on a java ee application server, that runs under Java 8, hence code reviews are not always possible.

Aucun commentaire:

Enregistrer un commentaire