File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
api/src/main/java/jakarta/mail/internet Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 1997, 2023 Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 1997, 2025 Oracle and/or its affiliates. All rights reserved.
33 *
44 * This program and the accompanying materials are made available under the
55 * terms of the Eclipse Public License v. 2.0, which is available at
@@ -143,6 +143,17 @@ public String getValue() {
143143 }
144144 return line .substring (j );
145145 }
146+
147+ @ Override
148+ public String toString () {
149+ // super.value in this class is not meaningful
150+ String value = line == null ? null : getValue ();
151+ return "InternetHeader{" +
152+ "name='" + name + '\'' +
153+ ", value='" + value + '\'' +
154+ '}' ;
155+ }
156+
146157 }
147158
148159 /*
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ E 720 finalize() in java.lang.Object has been deprecated
2626E 744 Remove SecurityManager reference from API
2727E 758 Improve MimeMessage UTF8 handling
2828E 804 Restore streamProvider fields for backwards compatibility
29+ E 810 InternetHeaders.InternetHeader toString()
2930
3031 CHANGES IN THE 2.1.5 RELEASE
3132 ----------------------------
You can’t perform that action at this time.
0 commit comments