From 56445e8f33abb88203f7d078de51b17a5dfa77ee Mon Sep 17 00:00:00 2001 From: chochos Date: Mon, 26 Sep 2011 20:48:33 +0000 Subject: [PATCH] Add generics in a couple of places where they were missing, as well as a @SuppressWarnings git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@97 db60a039-f72e-0410-b1d2-baa000846441 --- src/main/java/com/solab/iso8583/IsoMessage.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/solab/iso8583/IsoMessage.java b/src/main/java/com/solab/iso8583/IsoMessage.java index 3218b6e..b12bb89 100644 --- a/src/main/java/com/solab/iso8583/IsoMessage.java +++ b/src/main/java/com/solab/iso8583/IsoMessage.java @@ -43,7 +43,8 @@ public class IsoMessage { /** Indicates if the message is binary-coded. */ private boolean binary; /** This is where the values are stored. */ - private IsoValue[] fields = new IsoValue[129]; + @SuppressWarnings("rawtypes") + private IsoValue[] fields = new IsoValue[129]; /** Stores the optional ISO header. */ private String isoHeader; private int etx = -1; @@ -172,7 +173,7 @@ public class IsoMessage { if (value == null) { fields[index] = null; } else { - IsoValue v = null; + IsoValue v = null; if (t.needsLength()) { v = new IsoValue(t, value, length, encoder); } else {