[Lada-commits] [PATCH 1 of 4] Updated importer response item to take objects as value

Wald Commits scm-commit at wald.intevation.org
Fri Apr 17 13:22:50 CEST 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1429269465 -7200
# Node ID d51d0418d02773575d60e5e028cf9c2f4e9b3931
# Parent  afaee6f0f3eca15c3bf06b714e02aa28ffc286eb
Updated importer response item to take objects as value.

diff -r afaee6f0f3ec -r d51d0418d027 src/main/java/de/intevation/lada/importer/ReportItem.java
--- a/src/main/java/de/intevation/lada/importer/ReportItem.java	Thu Apr 16 17:04:09 2015 +0200
+++ b/src/main/java/de/intevation/lada/importer/ReportItem.java	Fri Apr 17 13:17:45 2015 +0200
@@ -17,7 +17,7 @@
 public class ReportItem
 {
     private String key;
-    private String value;
+    private Object value;
     private Integer code;
 
     /**
@@ -32,7 +32,7 @@
      * @param value The value caused the error/warning.
      * @param code  The code specifying the error/warning.
      */
-    public ReportItem(String key, String value, Integer code) {
+    public ReportItem(String key, Object value, Integer code) {
         this.key = key;
         this.value = value;
         this.code = code;
@@ -55,7 +55,7 @@
     /**
      * @return the value
      */
-    public String getValue() {
+    public Object getValue() {
         return value;
     }
 


More information about the Lada-commits mailing list