Skip to content

Commit

Permalink
8325361: Make sun.net.www.MessageHeader final
Browse files Browse the repository at this point in the history
Reviewed-by: dfuchs
  • Loading branch information
Korov authored and dfuch committed Mar 1, 2024
1 parent 5b75199 commit e85265a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/java.base/share/classes/sun/net/www/MessageHeader.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -40,17 +40,15 @@
the header that don't have a valid key, but do have
a value (this isn't legal according to the standard,
but lines like this are everywhere). */
public
class MessageHeader {
private String keys[];
private String values[];
public final class MessageHeader {
private String[] keys;
private String[] values;
private int nkeys;

public MessageHeader () {
grow();
}

@SuppressWarnings("this-escape")
public MessageHeader (InputStream is) throws java.io.IOException {
parseHeader(is);
}
Expand Down

1 comment on commit e85265a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.