ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enrique Ferreyra <eferre...@gmail.com>
Subject Re: Warnings at queryForList
Date Fri, 07 Apr 2006 11:38:11 GMT
My english is limited :)

I know this, i mean if there is a better way for code that and get no 
warnings, or this warnings are so normal that the better choice is

-Xlint ??

Thanks


Meindert escribi├│:

>Am using netBeans 5.0 and removed in 'Additional Compiler Options' the
>option; -Xlint 
>
>This field can be found under Project Properties=>Build=>Compiling
>
>MEINDERT 
>-----Original Message-----
>From: Enrique Ferreyra [mailto:eferreyra@gmail.com] 
>Sent: 07 April 2006 01:19 PM
>To: user-java@ibatis.apache.org
>Subject: Warnings at queryForList
>
>Maybe this is a more java laguage question than ibatis, but someone can 
>tell me how to avoid this warnings ? Not suppressing them, doing the 
>things fine.
>
>C:\svnjava\ccem-base\src\com\ccem\megatone\base\LegajoPick.java:144: 
>warning: [unchecked] unchecked cast
>found   : java.util.List
>required: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
>                items = (List<Map<String, Object>>) 
>DefaultProfile.getSqlMap().queryForList("pick-legajo", parametrosSqlMap);
>
>C:\svnjava\ccem-base\src\com\ccem\megatone\stock\DepositoPick.java:147: 
>warning: [unchecked] unchecked cast
>found   : java.util.List
>required: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
>                items = (List<Map<String, Object>>) 
>DefaultProfile.getSqlMap().queryForList("pick-deposito", parametrosSqlMap);
>
>C:\svnjava\ccem-base\src\com\ccem\megatone\stock\ServicePick.java:145: 
>warning: [unchecked] unchecked cast
>found   : java.util.List
>required: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
>                items = (List<Map<String, Object>>) 
>DefaultProfile.getSqlMap().queryForList("pick-service", parametrosSqlMap);
>3 warnings
>
>Thanks
>
>  
>

-- 
  A.U.S. Enrique Ferreyra
    Centro de C├│mputos
 Red Megatone - Red Confina


Mime
View raw message