mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8066617: Suppress deprecation warnings in java.base module
Reviewed-by: lancea
This commit is contained in:
parent
ea89dad13c
commit
4edac8c9d2
19 changed files with 45 additions and 2 deletions
|
@ -298,6 +298,7 @@ public class Attributes implements Map<Object,Object>, Cloneable {
|
|||
* Writes the current attributes to the specified data output stream.
|
||||
* XXX Need to handle UTF8 values and break up lines longer than 72 bytes
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
void write(DataOutputStream os) throws IOException {
|
||||
for (Entry<Object, Object> e : entrySet()) {
|
||||
StringBuffer buffer = new StringBuffer(
|
||||
|
@ -325,6 +326,7 @@ public class Attributes implements Map<Object,Object>, Cloneable {
|
|||
*
|
||||
* XXX Need to handle UTF8 values and break up lines longer than 72 bytes
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
void writeMain(DataOutputStream out) throws IOException
|
||||
{
|
||||
// write out the *-Version header first, if it exists
|
||||
|
@ -367,6 +369,7 @@ public class Attributes implements Map<Object,Object>, Cloneable {
|
|||
* Reads attributes from the specified input stream.
|
||||
* XXX Need to handle UTF8 values.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
void read(Manifest.FastInputStream is, byte[] lbuf) throws IOException {
|
||||
String name = null, value = null;
|
||||
byte[] lastline = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue