I am getting the following error in jenkins on compiling a java project that I build:
[javac] C:\Users\Administrator\.jenkins\workspace\AMRM\AMRM-rad-workspace\AMRM\src\com\bidv\amrm\struts2\jdbc\DeclareAppImpl.java:232: error: incompatible types
    [javac]                   return DB.getConnection().queryForObject(sql, new Object[]{id}, new DTOMapper());
    [javac]                                                           ^
    [javac]   required: ListAppDTO
    [javac]   found:    Object
I found a solution to fix is adding the line: @SuppressWarnings("unchecked") before relate function in java code
I got a temporary fix by adding the below line before relate funcion in java.
@SuppressWarnings("unchecked")
But I'd like some permanent solution if there is one