【发布时间】:2011-07-18 04:52:56
【问题描述】:
我的代码出现以下 Findbugs 错误,
Invocation of toString on <<Package Path>>
The code invokes toString on an array, which will generate a fairly useless
result such as [C@16f0472. Consider using Arrays.toString to convert the
array into a readable String that gives the contents of the array.
See Programming Puzzlers, chapter 3, puzzle 12.
代码:
logger.info("Adding information"+ Employee.getName()+ " "+
employeeForm.getQuestionAndAnswers());
请告诉我是什么错误。
【问题讨论】:
-
请告诉我代码中的错误到底在哪里