11package org .json .zip ;
22
3-
43/*
54 Copyright (c) 2013 JSON.org
65
@@ -27,7 +26,9 @@ of this software and associated documentation files (the "Software"), to deal
2726
2827/**
2928 * JSONzip is a binary-encoded JSON dialect. It is designed to compress the
30- * messages in a session. It is adaptive, so with each message seen, it should
29+ * messages in a session in bandwidth constrained applications, such as mobile.
30+ *
31+ * JSONzip is adaptive, so with each message seen, it should
3132 * improve its compression. It minimizes JSON's overhead, reducing punctuation
3233 * to a small number of bits. It uses Huffman encoding to reduce the average
3334 * size of characters. It uses caches (or Keeps) to keep recently seen strings
@@ -43,7 +44,7 @@ of this software and associated documentation files (the "Software"), to deal
4344 * ADEQUATELY FOR PRODUCTION USE.
4445 *
4546 * @author JSON.org
46- * @version 2013 -04-18
47+ * @version 2014 -04-21
4748 */
4849public abstract class JSONzip implements None , PostMortem {
4950 /**
@@ -230,12 +231,17 @@ static void log(int integer) {
230231
231232 /**
232233 * Write two integers, separated by ':' to the console.
234+ * The second integer is suppressed if it is 1.
233235 *
234236 * @param integer
235237 * @param width
236238 */
237239 static void log (int integer , int width ) {
238- log (integer + ":" + width + " " );
240+ if (width == 1 ) {
241+ log (integer );
242+ } else {
243+ log (integer + ":" + width + " " );
244+ }
239245 }
240246
241247 /**
0 commit comments