Skip to content

Commit

Permalink
Simplify MultiPostprocessor.getName
Browse files Browse the repository at this point in the history
  • Loading branch information
motiz88 committed Mar 12, 2018
1 parent 17a8e17 commit 431a560
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@ private MultiPostprocessor(List<Postprocessor> postprocessors) {

@Override
public String getName () {
StringBuilder name = new StringBuilder("MultiPostProcessor (");
boolean first = true;
StringBuilder name = new StringBuilder();
for (Postprocessor p: mPostprocessors) {
if (!first) {
if (name.length() > 0) {
name.append(",");
}
name.append(p.getName());
first = false;
}
name.insert(0, "MultiPostProcessor (");
name.append(")");
return name.toString();
}
Expand Down

0 comments on commit 431a560

Please sign in to comment.