From ffc60638fba7475b4cb6a863aa8f27c7e5a9b059 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Wed, 22 Oct 2014 17:07:40 +0000
Subject: [PATCH] #2021 feature - Updated JSON library to the latest version

---
 src/main/java/net/curisit/securis/LicenseValidator.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/net/curisit/securis/LicenseValidator.java b/src/main/java/net/curisit/securis/LicenseValidator.java
index ad4bd29..3022aea 100644
--- a/src/main/java/net/curisit/securis/LicenseValidator.java
+++ b/src/main/java/net/curisit/securis/LicenseValidator.java
@@ -61,8 +61,8 @@
     public void validateHW(RequestBean reqBean, String appCode, String customerCode, String packCode) throws SeCurisException {
         RequestBean currentHW = ReqGenerator.getInstance().createRequest(appCode, customerCode, packCode);
         if (!currentHW.match(reqBean)) {
-            throw new SeCurisException("Current System info mismatch the License System info:\n Licensed: " + JsonUtils.toJSON(reqBean, true)
-                    + "\n Expected: " + JsonUtils.toJSON(currentHW, true));
+            throw new SeCurisException("Current System info mismatch the License System info:\n Licensed: \n" + JsonUtils.toPrettyJSON(reqBean)
+                    + "\n Expected: \n" + JsonUtils.toPrettyJSON(currentHW));
         }
     }
 

--
Gitblit v1.3.2