MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / abbreviate

Method abbreviate

java/src/org/openqa/selenium/json/Json.java:215–217  ·  view source on GitHub ↗

Limit how much of the source is echoed into an exception message; sources can be many megabytes, and the parse position is already reported by the underlying cause.

(String text)

Source from the content-addressed store, hash-verified

213 * megabytes, and the parse position is already reported by the underlying cause.
214 */
215 private static String abbreviate(String text) {
216 return text.length() <= 512 ? text : text.substring(0, 512) + "...";
217 }
218
219 /**
220 * Deserialize the JSON string supplied by the specified {@code Reader} into an object of the

Callers 1

toTypeMethod · 0.95

Calls 1

lengthMethod · 0.65

Tested by

no test coverage detected