8327208: Remove unused method java.util.jar.Manifest.make72Safe

Reviewed-by: lancea, iris, jpai
This commit is contained in:
Eirik Bjørsnøs 2024-03-05 08:39:43 +00:00
parent d6f2a174fc
commit e9adcebaf2
3 changed files with 12 additions and 31 deletions

View file

@ -219,22 +219,6 @@ public class Manifest implements Cloneable {
dos.flush();
}
/**
* Adds line breaks to enforce a maximum of 72 bytes per line.
*
* @deprecation Replaced with {@link #println72}.
*/
@Deprecated(since = "13")
static void make72Safe(StringBuffer line) {
int length = line.length();
int index = 72;
while (index < length) {
line.insert(index, "\r\n ");
index += 74; // + line width + line break ("\r\n")
length += 3; // + line break ("\r\n") and space
}
}
/**
* Writes {@code line} to {@code out} with line breaks and continuation
* spaces within the limits of 72 bytes of contents per line followed