From 8dd759f92f4874f41f3c8d871fda75bfa8e013ed Mon Sep 17 00:00:00 2001 From: Enrique Zamudio Date: Tue, 23 Apr 2013 10:30:00 -0500 Subject: [PATCH] Fix #8 - change parsing maps visibility to protected --- src/main/java/com/solab/iso8583/IsoMessage.java | 2 +- src/main/java/com/solab/iso8583/MessageFactory.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/solab/iso8583/IsoMessage.java b/src/main/java/com/solab/iso8583/IsoMessage.java index 9c79333..5f5dc74 100644 --- a/src/main/java/com/solab/iso8583/IsoMessage.java +++ b/src/main/java/com/solab/iso8583/IsoMessage.java @@ -399,7 +399,7 @@ public class IsoMessage { * not present in the source message it is simply ignored. */ public void copyFieldsFrom(IsoMessage src, int...idx) { for (int i : idx) { - IsoValue v = src.getField(i); + IsoValue v = src.getField(i); if (v != null) { setValue(i, v.getValue(), v.getEncoder(), v.getType(), v.getLength()); } diff --git a/src/main/java/com/solab/iso8583/MessageFactory.java b/src/main/java/com/solab/iso8583/MessageFactory.java index a7078f1..dc7ccd9 100644 --- a/src/main/java/com/solab/iso8583/MessageFactory.java +++ b/src/main/java/com/solab/iso8583/MessageFactory.java @@ -56,9 +56,9 @@ public class MessageFactory { /** This map stores the message template for each message type. */ private Map typeTemplates = new HashMap(); /** Stores the information needed to parse messages sorted by type. */ - private Map> parseMap = new HashMap>(); + protected Map> parseMap = new HashMap>(); /** Stores the field numbers to be parsed, in order of appearance. */ - private Map> parseOrder = new HashMap>(); + protected Map> parseOrder = new HashMap>(); private TraceNumberGenerator traceGen; /** The ISO header to be included in each message type. */