diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 01:07:32 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 01:07:32 +0000 |
commit | bc8943635143b878e8acb9b54042b0e15282c0c4 (patch) | |
tree | d53c9c8b58b0e475e5774751728d52fa88f8259b /java/com/android/libraries/entitlement/http/HttpResponse.java | |
parent | 0a604fcbe788442a585ec3169a6518cf2acbda83 (diff) | |
parent | 1a392f75763d5679f669b26d97269f275491e79e (diff) | |
download | service_entitlement-aml_tet_341112070.tar.gz |
Snap for 10447354 from 1a392f75763d5679f669b26d97269f275491e79e to mainline-tethering-releaseaml_tet_341712060aml_tet_341610020aml_tet_341511010aml_tet_341411060aml_tet_341310230aml_tet_341112070aml_tet_341010040aml_tet_340913030android14-mainline-tethering-release
Change-Id: I3890d0d581f36aa1064e7297b2119bc680d003c5
Diffstat (limited to 'java/com/android/libraries/entitlement/http/HttpResponse.java')
-rw-r--r-- | java/com/android/libraries/entitlement/http/HttpResponse.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/java/com/android/libraries/entitlement/http/HttpResponse.java b/java/com/android/libraries/entitlement/http/HttpResponse.java index f495578..142639e 100644 --- a/java/com/android/libraries/entitlement/http/HttpResponse.java +++ b/java/com/android/libraries/entitlement/http/HttpResponse.java @@ -74,8 +74,11 @@ public abstract class HttpResponse { .setCookies(ImmutableList.of()); } - @Override - public final String toString() { + /** + * Returns a short string representation for debugging purposes. Doesn't include the cookie or + * full body to prevent leaking sensitive data. + */ + public String toShortDebugString() { return new StringBuilder("HttpResponse{") .append("contentType=") .append(contentType()) |