Skip to content

Commit c38d843

Browse files
SnipxUbuntu
authored andcommitted
Deprecate a bunch of unused constants in IoLogMessageConstant
1 parent bcc3e25 commit c38d843

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

io/src/main/java/com/itextpdf/io/logs/IoLogMessageConstant.java

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ public final class IoLogMessageConstant {
8585
+ "as finished. Consider using com.itextpdf.layout.tagging.LayoutTaggingHelper#replaceKidHint "
8686
+ "method for replacing not yet finished kid hint of a finished parent hint.";
8787

88+
/**
89+
* @deprecated Unused constant. Will be removed in 7.3
90+
*/
91+
@Deprecated
8892
public static final String CANNOT_ADD_KID_HINT_WHICH_IS_ALREADY_ADDED_TO_ANOTHER_PARENT =
8993
"Layout tagging hints addition failed: cannot add a kid hint to a new parent if it is already added to "
9094
+ "another parent. Consider using com.itextpdf.layout.tagging.LayoutTaggingHelper#moveHint method "
@@ -168,6 +172,10 @@ public final class IoLogMessageConstant {
168172

169173
public static final String DOCUMENT_IDS_ARE_CORRUPTED = "The document original and/or modified id is corrupted";
170174

175+
/**
176+
* @deprecated Unused constant. Will be removed in 7.3
177+
*/
178+
@Deprecated
171179
public static final String DOCUMENT_SERIALIZATION_EXCEPTION_RAISED = "Unhandled exception while serialization";
172180

173181
public static final String DOCUMENT_VERSION_IN_CATALOG_CORRUPTED = "The document version specified in catalog is "
@@ -304,6 +312,10 @@ public final class IoLogMessageConstant {
304312
public static final String INLINE_BLOCK_ELEMENT_WILL_BE_CLIPPED =
305313
"Inline block element does not fit into parent element and will be clipped";
306314

315+
/**
316+
* @deprecated Unused constant. Will be removed in 7.3
317+
*/
318+
@Deprecated
307319
public static final String INPUT_STREAM_CONTENT_IS_LOST_ON_PDFSTREAM_SERIALIZATION =
308320
"PdfStream contains not null input stream. It's content will be lost in serialized object.";
309321

@@ -452,8 +464,16 @@ public final class IoLogMessageConstant {
452464
public static final String TABLE_WIDTH_IS_MORE_THAN_EXPECTED_DUE_TO_MIN_WIDTH =
453465
"Table width is more than expected due to min width of cell(s).";
454466

467+
/**
468+
* @deprecated Unused constant. Will be removed in 7.3
469+
*/
470+
@Deprecated
455471
public static final String TAGGING_HINT_NOT_FINISHED_BEFORE_CLOSE = "Tagging hint wasn't finished before closing.";
456472

473+
/**
474+
* @deprecated Unused constant. Will be removed in 7.3
475+
*/
476+
@Deprecated
457477
public static final String TAG_STRUCTURE_CONTEXT_WILL_BE_REINITIALIZED_ON_SERIALIZATION =
458478
"Tag structure context is not null and will be reinitialized in the copy of document. The copy may lose "
459479
+ "some data";
@@ -481,18 +501,34 @@ public final class IoLogMessageConstant {
481501
+ "this means that element was added to the Canvas instance that was created not with constructor "
482502
+ "taking PdfPage as argument. Not processed property: {0}";
483503

504+
/**
505+
* @deprecated Unused constant. Will be removed in 7.3
506+
*/
507+
@Deprecated
484508
public static final String UNABLE_TO_INTERRUPT_THREAD = "Unable to interrupt a thread";
485509

486510
public static final String UNABLE_TO_INVERT_GRADIENT_TRANSFORMATION = "Unable to invert gradient transformation, "
487511
+ "ignoring it";
488512

513+
/**
514+
* @deprecated Unused constant. Will be removed in 7.3
515+
*/
516+
@Deprecated
489517
public static final String UNABLE_TO_REGISTER_EVENT_DATA_HANDLER_SHUTDOWN_HOOK =
490518
"Unable to register event data handler shutdown hook because of security reasons.";
491519

520+
/**
521+
* @deprecated Unused constant. Will be removed in 7.3
522+
*/
523+
@Deprecated
492524
public static final String UNABLE_TO_SEARCH_FOR_EVENT_CONTEXT =
493525
"It is impossible to retrieve event context because of the security reasons. Event counting may behave in "
494526
+ "unexpected way";
495527

528+
/**
529+
* @deprecated Unused constant. Will be removed in 7.3
530+
*/
531+
@Deprecated
496532
public static final String UNABLE_TO_UNREGISTER_EVENT_DATA_HANDLER_SHUTDOWN_HOOK =
497533
"Unable to unregister event data handler shutdown hook because of security permissions";
498534

@@ -507,6 +543,10 @@ public final class IoLogMessageConstant {
507543
public static final String UNKNOWN_COLOR_FORMAT_MUST_BE_RGB_OR_RRGGBB =
508544
"Unknown color format: must be rgb or rrggbb.";
509545

546+
/**
547+
* @deprecated Unused constant. Will be removed in 7.3
548+
*/
549+
@Deprecated
510550
public static final String UNKNOWN_DIGEST_METHOD =
511551
"Unknown digest method. Valid values are MD5, SHA1 SHA256, SHA384, SHA512 and RIPEMD160.";
512552

@@ -542,6 +582,10 @@ public final class IoLogMessageConstant {
542582

543583
public static final String XFDF_NO_F_OBJECT_TO_COMPARE = "Xfdf no f object to compare.";
544584

585+
/**
586+
* @deprecated Unused constant. Will be removed in 7.3
587+
*/
588+
@Deprecated
545589
public static final String XFDF_OUTPUT_STREAM_CORRUPTED = "Xfdf output stream is corrupted.";
546590

547591
public static final String XFDF_UNSUPPORTED_ANNOTATION_ATTRIBUTE = "Xfdf unsupported attribute type";

0 commit comments

Comments
 (0)