On Wed, 10 Jan 2018 17:34:55 -0700, Gary Gregory wrote:
Hi All:

I find myself writing a lot of this kind of code:

if (SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_1_8)) ...

and


Assume.assumeTrue(SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_1_8));

I think this would be more tidy:

if (SystemUtils.isJavaVersionAtLeast8()) ...

If this makes your skin crawl, please present a (technical) argument
against it...

Gary

Can't you do something like

if (JavaVersion.isAtLeast(JavaVersion.JAVA_1_8)) ...

?

Gilles


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to