Build fail due this commit. It works fine at rev - 831259
Reason inline
[email protected] wrote:
Author: jleroux
Date: Fri Oct 30 11:08:41 2009
New Revision: 831262
URL: http://svn.apache.org/viewvc?rev=831262&view=rev
Log:
Revert r831259 (done in haste wrong file) and add all generics needed
Modified:
ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/device/impl/Receipt.java
Modified:
ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/device/impl/Receipt.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/device/impl/Receipt.java?rev=831262&r1=831261&r2=831262&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/device/impl/Receipt.java
(original)
+++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/device/impl/Receipt.java
Fri Oct 30 11:08:41 2009
@@ -25,12 +25,11 @@
import java.math.BigDecimal;
import java.net.URL;
import java.text.SimpleDateFormat;
-import java.util.ArrayList;
import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
import java.util.List;
+import java.util.Map;
+import javolution.util.FastMap;
import jpos.JposException;
import jpos.POSPrinter;
import jpos.POSPrinterConst;
@@ -65,7 +64,7 @@
protected SimpleDateFormat[] dateFormat = null;
protected String[] storeReceiptTmpl = null;
protected String[] custReceiptTmpl = null;
- protected Map reportTmpl = new HashMap();
+ protected Map<String, Object> reportTmpl = FastMap.newInstance();
protected static final String[] dateFmtStr = { "EEE, d MMM yyyy HH:mm:ss z", "EEE, d MMM yyyy HH:mm:ss z", "EEE, d MMM yyyy HH:mm:ss z" };
protected static final int[] priceLength = { 7, 7, 7 };
@@ -112,7 +111,7 @@
}
}
- public synchronized void printReport(PosTransaction trans, String resource, Map context) {
+ public synchronized void printReport(PosTransaction trans, String resource,
Map<String, Object> context) {
This method is called from ManageEvents.java file and passed
HashMap<String, String> for context parameter and here it is
Map<String, Object>
Regards
--
Akash Jain