mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8327208: Remove unused method java.util.jar.Manifest.make72Safe
Reviewed-by: lancea, iris, jpai
This commit is contained in:
parent
d6f2a174fc
commit
e9adcebaf2
3 changed files with 12 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue