A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/protocolbuffers/protobuf/commit/1df3ddea58818a26001f1259118407e96a6c7ab1 below:

Automated rollback of commit 1d4b6bac6e5d5d889bf38ecce44afa93e3cc03e2. · protocolbuffers/protobuf@1df3dde · GitHub

@@ -91,8 +91,7 @@ public static Printer printer() {

91 91

/* preservingProtoFieldNames */ false,

92 92

/* omittingInsignificantWhitespace */ false,

93 93

/* printingEnumsAsInts */ false,

94 -

/* sortingMapKeys */ false,

95 -

/* unsafeDisableCodepointsForHtmlSymbols */ false);

94 +

/* sortingMapKeys */ false);

96 95

}

97 96 98 97

private enum ShouldPrintDefaults {

@@ -115,7 +114,6 @@ public static class Printer {

115 114

private final boolean omittingInsignificantWhitespace;

116 115

private final boolean printingEnumsAsInts;

117 116

private final boolean sortingMapKeys;

118 -

private final boolean unsafeDisableCodepointsForHtmlSymbols;

119 117 120 118

private Printer(

121 119

com.google.protobuf.TypeRegistry registry,

@@ -125,8 +123,7 @@ private Printer(

125 123

boolean preservingProtoFieldNames,

126 124

boolean omittingInsignificantWhitespace,

127 125

boolean printingEnumsAsInts,

128 -

boolean sortingMapKeys,

129 -

boolean unsafeDisableCodepointsForHtmlSymbols) {

126 +

boolean sortingMapKeys) {

130 127

this.registry = registry;

131 128

this.oldRegistry = oldRegistry;

132 129

this.shouldPrintDefaults = shouldOutputDefaults;

@@ -135,7 +132,6 @@ private Printer(

135 132

this.omittingInsignificantWhitespace = omittingInsignificantWhitespace;

136 133

this.printingEnumsAsInts = printingEnumsAsInts;

137 134

this.sortingMapKeys = sortingMapKeys;

138 -

this.unsafeDisableCodepointsForHtmlSymbols = unsafeDisableCodepointsForHtmlSymbols;

139 135

}

140 136 141 137

/**

@@ -157,8 +153,7 @@ public Printer usingTypeRegistry(TypeRegistry oldRegistry) {

157 153

preservingProtoFieldNames,

158 154

omittingInsignificantWhitespace,

159 155

printingEnumsAsInts,

160 -

sortingMapKeys,

161 -

unsafeDisableCodepointsForHtmlSymbols);

156 +

sortingMapKeys);

162 157

}

163 158 164 159

/**

@@ -180,8 +175,7 @@ public Printer usingTypeRegistry(com.google.protobuf.TypeRegistry registry) {

180 175

preservingProtoFieldNames,

181 176

omittingInsignificantWhitespace,

182 177

printingEnumsAsInts,

183 -

sortingMapKeys,

184 -

unsafeDisableCodepointsForHtmlSymbols);

178 +

sortingMapKeys);

185 179

}

186 180 187 181

/**

@@ -210,8 +204,7 @@ public Printer includingDefaultValueFields() {

210 204

preservingProtoFieldNames,

211 205

omittingInsignificantWhitespace,

212 206

printingEnumsAsInts,

213 -

sortingMapKeys,

214 -

unsafeDisableCodepointsForHtmlSymbols);

207 +

sortingMapKeys);

215 208

}

216 209 217 210

/**

@@ -239,8 +232,7 @@ public Printer includingDefaultValueFields(Set<FieldDescriptor> fieldsToAlwaysOu

239 232

preservingProtoFieldNames,

240 233

omittingInsignificantWhitespace,

241 234

printingEnumsAsInts,

242 -

sortingMapKeys,

243 -

unsafeDisableCodepointsForHtmlSymbols);

235 +

sortingMapKeys);

244 236

}

245 237 246 238

/**

@@ -261,8 +253,7 @@ public Printer alwaysPrintFieldsWithNoPresence() {

261 253

preservingProtoFieldNames,

262 254

omittingInsignificantWhitespace,

263 255

printingEnumsAsInts,

264 -

sortingMapKeys,

265 -

unsafeDisableCodepointsForHtmlSymbols);

256 +

sortingMapKeys);

266 257

}

267 258 268 259

/**

@@ -279,8 +270,7 @@ public Printer printingEnumsAsInts() {

279 270

preservingProtoFieldNames,

280 271

omittingInsignificantWhitespace,

281 272

true,

282 -

sortingMapKeys,

283 -

unsafeDisableCodepointsForHtmlSymbols);

273 +

sortingMapKeys);

284 274

}

285 275 286 276

private void checkUnsetPrintingEnumsAsInts() {

@@ -304,8 +294,7 @@ public Printer preservingProtoFieldNames() {

304 294

true,

305 295

omittingInsignificantWhitespace,

306 296

printingEnumsAsInts,

307 -

sortingMapKeys,

308 -

unsafeDisableCodepointsForHtmlSymbols);

297 +

sortingMapKeys);

309 298

}

310 299 311 300

@@ -334,8 +323,7 @@ public Printer omittingInsignificantWhitespace() {

334 323

preservingProtoFieldNames,

335 324

true,

336 325

printingEnumsAsInts,

337 -

sortingMapKeys,

338 -

unsafeDisableCodepointsForHtmlSymbols);

326 +

sortingMapKeys);

339 327

}

340 328 341 329

/**

@@ -358,8 +346,7 @@ public Printer sortingMapKeys() {

358 346

preservingProtoFieldNames,

359 347

omittingInsignificantWhitespace,

360 348

printingEnumsAsInts,

361 -

true,

362 -

unsafeDisableCodepointsForHtmlSymbols);

349 +

true);

363 350

}

364 351 365 352

/**

@@ -381,8 +368,7 @@ public void appendTo(MessageOrBuilder message, Appendable output) throws IOExcep

381 368

output,

382 369

omittingInsignificantWhitespace,

383 370

printingEnumsAsInts,

384 -

sortingMapKeys,

385 -

unsafeDisableCodepointsForHtmlSymbols)

371 +

sortingMapKeys)

386 372

.print(message);

387 373

}

388 374

@@ -740,8 +726,6 @@ private static final class PrinterImpl {

740 726 741 727

private static class GsonHolder {

742 728

private static final Gson DEFAULT_GSON = new GsonBuilder().create();

743 -

private static final Gson GSON_WITHOUT_HTML_ESCAPING =

744 -

new GsonBuilder().disableHtmlEscaping().create();

745 729

}

746 730 747 731

PrinterImpl(

@@ -753,19 +737,15 @@ private static class GsonHolder {

753 737

Appendable jsonOutput,

754 738

boolean omittingInsignificantWhitespace,

755 739

boolean printingEnumsAsInts,

756 -

boolean sortingMapKeys,

757 -

boolean unsafeDisableCodepointsForHtmlSymbols) {

740 +

boolean sortingMapKeys) {

758 741

this.registry = registry;

759 742

this.oldRegistry = oldRegistry;

760 743

this.shouldPrintDefaults = shouldPrintDefaults;

761 744

this.includingDefaultValueFields = includingDefaultValueFields;

762 745

this.preservingProtoFieldNames = preservingProtoFieldNames;

763 746

this.printingEnumsAsInts = printingEnumsAsInts;

764 747

this.sortingMapKeys = sortingMapKeys;

765 -

this.gson =

766 -

unsafeDisableCodepointsForHtmlSymbols

767 -

? GsonHolder.GSON_WITHOUT_HTML_ESCAPING

768 -

: GsonHolder.DEFAULT_GSON;

748 +

this.gson = GsonHolder.DEFAULT_GSON;

769 749

// json format related properties, determined by printerType

770 750

if (omittingInsignificantWhitespace) {

771 751

this.generator = new CompactTextGenerator(jsonOutput);


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4