avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fo...@apache.org
Subject [avro] branch master updated: AVRO-2031: GenericData.writeEscapedString should be static (#730)
Date Thu, 06 Feb 2020 09:13:03 GMT
This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/master by this push:
     new 8e5a4ea  AVRO-2031: GenericData.writeEscapedString should be static (#730)
8e5a4ea is described below

commit 8e5a4ea769d925df95b4d4cde596a71248f2d3c5
Author: ravowlga123 <ravowlga@gmail.com>
AuthorDate: Thu Feb 6 10:12:55 2020 +0100

    AVRO-2031: GenericData.writeEscapedString should be static (#730)
---
 lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java b/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java
index 8a3b437..dede107 100644
--- a/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java
+++ b/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java
@@ -710,7 +710,7 @@ public class GenericData {
   }
 
   /* Adapted from https://code.google.com/p/json-simple */
-  private void writeEscapedString(CharSequence string, StringBuilder builder) {
+  private static void writeEscapedString(CharSequence string, StringBuilder builder) {
     for (int i = 0; i < string.length(); i++) {
       char ch = string.charAt(i);
       switch (ch) {


Mime
View raw message