Hello i am working on a code and i get Fortify Race Condition:Format Flaw issue and i don't know how to fix it. I have searched on stackoverflow and i couldn't find an accurate way to fix it. I get this error from that part of codes:
Date date = new Date();
newDevice.setCreationDate(dateFormat.format(date));
and
firstTrx.setTrxID(getSessionUser().getUserName() + dateFormat.format(date));
And i create the dateFormat instance here:
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
I would be very happy if you help, thanks.