Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.11
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE).toString(); }
We have a project that some file have encoding problem,it make sonar(mvn package sonar:sonar) fail! and it's cannot find the problem file.
If we add human readable "toString",it's will print the problem file.
Before add "toString" mvn console like below:
... Caused by: javax.persistence.PersistenceException: Unable to persist : org.sonar.api.database.model.SnapshotSource@34d34 ...
After:
Caused by: javax.persistence.PersistenceException: Unable to persist : SnapshotSource[snapshotId=217809,data=/*============================================================ ===== * $Id: ....
so we can find the problem.
Which version of Sonar are you using ?