Пример #1
0
 protected DefaultPrettyPrinter _withSpaces(boolean state) {
   if (_spacesInObjectEntries == state) {
     return this;
   }
   DefaultPrettyPrinter pp = new DefaultPrettyPrinter(this);
   pp._spacesInObjectEntries = state;
   return pp;
 }
Пример #2
0
 /** @since 2.3 */
 public DefaultPrettyPrinter withObjectIndenter(Indenter i) {
   if (i == null) {
     i = NopIndenter.instance;
   }
   if (_objectIndenter == i) {
     return this;
   }
   DefaultPrettyPrinter pp = new DefaultPrettyPrinter(this);
   pp._objectIndenter = i;
   return pp;
 }