[DISCUSS] Use static imports for test utilities or asserts.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[DISCUSS] Use static imports for test utilities or asserts.

Yang Jeff
Hi all,
Is it necessary for us to replace all assert or utilities with static import ? Thank you very much.
Reply | Threaded
Open this post in threaded view
|

Re: [DISCUSS] Use static imports for test utilities or asserts.

Till Rohrmann
Hi Yang,

are you referring to Flink's checkstyle settings which forbids star
imports? If you set up the checkstyle plugin [1] and activate optimize
imports in IntelliJ, then the IDE will take care that everything is correct.

[1]
https://ci.apache.org/projects/flink/flink-docs-stable/flinkDev/ide_setup.html#checkstyle-for-java

Cheers,
Till

On Wed, Sep 4, 2019 at 11:12 AM Yang Jeff <[hidden email]> wrote:

> Hi all,
> Is it necessary for us to replace all assert or utilities with static
> import ? Thank you very much.
>