Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
Signed-off-by: jmehrens <[email protected]>
  • Loading branch information
jmehrens committed Nov 1, 2023
1 parent 86d5aa7 commit a9b0099
Showing 1 changed file with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,9 @@ protected void reportError(String msg, Exception ex, int code) {
}

/**
* Calls log manager checkAccess if this is sealed.
* Checks logging permissions if this handler has been sealed.
* @throws SecurityException if a security manager exists and the caller
* does not have {@code LoggingPermission("control")}.
*/
private void checkAccess() {
if (sealed) {
Expand Down Expand Up @@ -4604,18 +4606,6 @@ private static RuntimeException attachmentMismatch(final String msg) {
return new IndexOutOfBoundsException(msg);
}

/**
* Outline the attachment mismatch message. See Bug ID 6533165.
*
* @param expected the expected array length.
* @param found the array length that was given.
* @return a RuntimeException populated with a message.
*/
private static RuntimeException attachmentMismatch(int expected, int found) {
return attachmentMismatch("Attachments mismatched, expected "
+ expected + " but given " + found + '.');
}

/**
* Try to attach a suppressed exception to a MessagingException in any order
* that is possible.
Expand Down

0 comments on commit a9b0099

Please sign in to comment.