addReport ca marche
Policy failures: Code warning - failed on resource EvaluationController.java. Reason: ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized, line 103 - failed on resource EvaluationController.java. Reason: Type safety: The expression of type ArrayList needs unchecked conversion to conform to List<Rating>, line 10 Override reason:
This commit is contained in:
@@ -129,8 +129,8 @@ public class EvaluationController extends SimpleFormController {
|
|||||||
if (!listeRating.isEmpty()) { System.out.println("not empty liste");}
|
if (!listeRating.isEmpty()) { System.out.println("not empty liste");}
|
||||||
System.out.println("current user is "+current.getLogin());*/
|
System.out.println("current user is "+current.getLogin());*/
|
||||||
|
|
||||||
Report rpt =new Report(commentPCMember,commentAuthor,listeRating,current,article);
|
//Report rpt =new Report(commentPCMember,commentAuthor,listeRating,current,article);
|
||||||
// evaluationManager.addReport(idd, commentPCMember, commentAuthor, listeRating, current.getLogin());
|
Report rpt= evaluationManager.addReport(idd, commentPCMember, commentAuthor, listeRating, current.getLogin());
|
||||||
request.getSession().setAttribute("report", rpt);
|
request.getSession().setAttribute("report", rpt);
|
||||||
//Map<String, Report> model1 = new HashMap<String, Report>();
|
//Map<String, Report> model1 = new HashMap<String, Report>();
|
||||||
//model1.put("report", rpt);
|
//model1.put("report", rpt);
|
||||||
|
|||||||
Reference in New Issue
Block a user