Skip to content

Commit

Permalink
yet more formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-schmidt committed Jun 26, 2024
1 parent a27284e commit f3bb580
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class AirbyteMessageDeserializer(
* Message.
*
* Throws on deserialization errors, obfuscating the error message to avoid data leakage. In
* recoverable cases (currently only when the top-level message type is unrecognized), throws
* a dedicated exception.
* recoverable cases (currently only when the top-level message type is unrecognized), throws a
* dedicated exception.
*
* PartialAirbyteMessage holds either:
* * entire serialized message string when message is a valid State Message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ object Jsons {
}
}

// WARNING: This message throws bare exceptions on parse failure which might
// leak sensitive data. Use obfuscateDeserializationException() to strip
// the sensitive data before logging.
@JvmStatic
fun <T : Any> deserializeExactUnchecked(jsonString: String?, klass: Class<T>?): T {
return OBJECT_MAPPER_EXACT.readValue(jsonString, klass)
Expand Down

0 comments on commit f3bb580

Please sign in to comment.