注解 @SuppressWarnings({ "rawtypes", "unchecked" })


@SuppressWarnings 

上述注解是jse提供的注解。作用是屏蔽一些無關緊要的警告。使開發者能看到一些他們真正關心的警告。從而提高開發者的效率

使用的話 是這樣suppressWarnings 禁止顯示警告

 

  1. @SuppressWarnings({ "rawtypes", "unchecked" })  
  2.     @ResponseBody  
  3.     @RequestMapping(params = "method=getList")  
  4.     public Map getList(CarAddOil obj) {   
  5.         Map map = new HashMap();  
  6.         map.put("list", carAddOilService.getList(obj));  
  7.         map.put("listCount", carAddOilService.getListCount(obj));  
  8.         return map;  
  9.     }  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM