This is an automated email from the ASF dual-hosted git repository.

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 9dc3bf8  AP-6003 Add Moshi support for JSON
9dc3bf8 is described below

commit 9dc3bf8bd2689295476c68936ad7069181f455b4
Author: Robert Lazarski <robertlazar...@gmail.com>
AuthorDate: Thu Jun 17 20:24:29 2021 -0400

    AP-6003 Add Moshi support for JSON
---
 modules/json/src/org/apache/axis2/json/moshi/JsonBuilder.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/json/src/org/apache/axis2/json/moshi/JsonBuilder.java 
b/modules/json/src/org/apache/axis2/json/moshi/JsonBuilder.java
index 06c6bd1..9a76f00 100644
--- a/modules/json/src/org/apache/axis2/json/moshi/JsonBuilder.java
+++ b/modules/json/src/org/apache/axis2/json/moshi/JsonBuilder.java
@@ -48,7 +48,7 @@ public class JsonBuilder implements Builder {
         if (inputStream != null) {
             try {
                 charSetEncoding = (String) 
messageContext.getProperty(Constants.Configuration.CHARACTER_SET_ENCODING);
-                if (charSetEncoding != null && 
charSetEncoding.indexOf("UTF-8") != -1) {
+                if (charSetEncoding != null && 
charSetEncoding.indexOf("UTF-8") == -1) {
                     log.warn("JsonBuilder.processDocument() detected encoding 
that is not UTF-8: " +charSetEncoding+ " , Moshi JsonReader internally invokes 
new JsonUtf8Reader()");
                 }
                 BufferedSource source = Okio.buffer(Okio.source(inputStream));

Reply via email to