How to compile using -Xlint:unchecked in a Maven project?

后端 未结 4 906
忘掉有多难
忘掉有多难 2020-12-03 04:29

In NetBeans 7.2, I\'m having trouble finding how to compile using -Xlint:unchecked in a Maven project. Under an Ant project, you can change compiler flags by going to Projec

4条回答
  •  眼角桃花
    2020-12-03 04:37

    This works for me...

    
        
            org.apache.maven.plugins
            maven-compiler-plugin
            3.8.1
            
                11
                11
                
                    ${endorsed.dir}
                
                
                    -Xlint:unchecked   <-------this right here ---->
                
            
        
    
    

提交回复
热议问题