Thursday 15 May 2014

java - How to selectively disable warnings in javac for spring 4.1.1 release -



java - How to selectively disable warnings in javac for spring 4.1.1 release -

we in technology refresh mode - spring libraries. getting warning

cannot find annotation method 'value()' in type 'repeatable': class file java.lang.annotation.repeatable not found

since treat warnings errors, whole build fails. if remove -werror flag, project compile , runs fine.

i know cause of warning. tried upgrading java8, looks not alternative other tooling not work - e.g. eclipse luna crashes on java8/ubuntu combo many times. eclipse indigo not want start.

our maven pom file mentions -werror flag valuable flag. there way disable warning? or there other alternative solution problem

probably, @suppresswarnings annotation help you.

java spring java-7 java-8 javac

No comments:

Post a Comment