File tree Expand file tree Collapse file tree
sqldev/src/main/java/org/utplsql/sqldev/dal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,16 +27,27 @@ private StringUtil() {
2727 public static String getCSV (List <String > list , int indentSpaces ) {
2828 final StringBuilder sb = new StringBuilder ();
2929 final String indent = String .join ("" , Collections .nCopies (indentSpaces , " " ));
30- for (final String path : list ) {
30+ for (final String item : list ) {
3131 if (sb .length () > 0 ) {
3232 sb .append (",\n " );
3333 }
3434 sb .append (indent );
3535 sb .append ("'" );
36- sb .append (path );
36+ sb .append (item );
3737 sb .append ("'" );
3838 }
3939 sb .append ("\n " );
4040 return sb .toString ();
4141 }
42+
43+ public static String getSimpleCSV (List <String > list ) {
44+ final StringBuilder sb = new StringBuilder ();
45+ for (final String item : list ) {
46+ if (sb .length () > 0 ) {
47+ sb .append (", " );
48+ }
49+ sb .append (item );
50+ }
51+ return sb .toString ();
52+ }
4253}
You can’t perform that action at this time.
0 commit comments