Skip to content

Commit

Permalink
Optimize dump
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Jan 30, 2019
1 parent 6d2a7b1 commit 430e093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jpos/src/main/java/org/jpos/iso/ISOMsg.java
Expand Up @@ -56,7 +56,7 @@ public class ISOMsg extends ISOComponent
* Creates an ISOMsg
*/
public ISOMsg () {
fields = new TreeMap<Integer,Object>();
fields = new TreeMap<>();
maxField = -1;
dirty = true;
maxFieldDirty=true;
Expand Down Expand Up @@ -508,7 +508,7 @@ public void dump (PrintStream p, String indent) {
if (header instanceof Loggeable)
((Loggeable) header).dump (p, newIndent);

for (int i=0; i<=maxField; i++) {
for (int i : fields.keySet()) {
if ((c = (ISOComponent) fields.get (i)) != null)
c.dump (p, newIndent);
//
Expand Down

0 comments on commit 430e093

Please sign in to comment.