0

I'm trying to make sense of some old code.

customerDao.queryForId("" + account.getId);

Is there a reason to do this?

nohnce
  • 61
  • 5

1 Answers1

0

This is done to convert getID into a String. It cannot throw a NullPointerException as calling getID.toString() could if getId is null.

Amith Kumar
  • 3,819
  • 1
  • 14
  • 22