@@ -36,11 +36,11 @@ public CommonFeature()
3636 OperationFeatures .put ("MethodEndLine" , 0 );
3737 OperationFeatures .put ("MethodLOC" , 0 );
3838
39- MetaInfo .put ("FilePath" , "'-filepath" );
40- MetaInfo .put ("StartLine" , "'-startline" );
41- MetaInfo .put ("ExceptionType" , "'-exceptiontype" );
42- MetaInfo .put ("ParentType" , "'-parenttype" );
43- MetaInfo .put ("ParentMethod" , "'-parentmethod" );
39+ // MetaInfo.put("FilePath", "'-filepath");
40+ // MetaInfo.put("StartLine", "'-startline");
41+ // MetaInfo.put("ExceptionType", "'-exceptiontype");
42+ // MetaInfo.put("ParentType", "'-parenttype");
43+ // MetaInfo.put("ParentMethod", "'-parentmethod");
4444
4545 MetaInfo .put ("TryLine" , "'-tryline" );
4646
@@ -84,10 +84,10 @@ public String PrintFeaturesCSV()
8484 {
8585 csv += (entry .getValue () + "," );
8686 }
87- csv += (ExceptionType + "," );
88- csv += (ParentMethod + "," );
89- csv += (ParentType + "," );
90- csv += (FilePath + "," );
87+ csv += '"' + (ExceptionType . replace ( String . valueOf ( '"' ), "" ) + '"' + "," );
88+ csv += '"' + (ParentMethod . replace ( String . valueOf ( '"' ), "" ) + '"' + "," );
89+ csv += '"' + (ParentType . replace ( String . valueOf ( '"' ), "" ) + '"' + "," );
90+ csv += '"' + (FilePath . replace ( String . valueOf ( '"' ), "" ) + '"' + "," );
9191 csv += (StartLine );
9292
9393 return csv ;
@@ -100,11 +100,11 @@ public String PrintMetaInfoCSV()
100100 {
101101 csv += '"' + (entry .getValue ().replace (String .valueOf ('"' ),"" ) + '"' + "," );
102102 }
103- // csv += (ExceptionType + ",");
104- // csv += (ParentMethod + ",");
105- // csv += (ParentType + ",");
106- // csv += (FilePath + ",");
107- // csv += (StartLine);
103+ csv += '"' + (ExceptionType . replace ( String . valueOf ( '"' ), "" ) + '"' + "," );
104+ csv += '"' + (ParentMethod . replace ( String . valueOf ( '"' ), "" ) + '"' + "," );
105+ csv += '"' + (ParentType . replace ( String . valueOf ( '"' ), "" ) + '"' + "," );
106+ csv += '"' + (FilePath . replace ( String . valueOf ( '"' ), "" ) + '"' + "," );
107+ csv += (StartLine );
108108
109109 return csv ;
110110 }
0 commit comments