Skip to content

Commit

Permalink
8304989: unnecessary dash in @param gives double-dash in docs
Browse files Browse the repository at this point in the history
Reviewed-by: lancea
  • Loading branch information
jaikiran committed Mar 28, 2023
1 parent 395a4ce commit c90699e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/java.base/share/classes/java/lang/Enum.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2023, 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 @@ -129,9 +129,9 @@ public final int ordinal() {
* It is for use by code emitted by the compiler in response to
* enum class declarations.
*
* @param name - The name of this enum constant, which is the identifier
* @param name The name of this enum constant, which is the identifier
* used to declare it.
* @param ordinal - The ordinal of this enumeration constant (its position
* @param ordinal The ordinal of this enumeration constant (its position
* in the enum declaration, where the initial constant is assigned
* an ordinal of zero).
*/
Expand Down
4 changes: 2 additions & 2 deletions src/java.base/share/classes/java/net/CookieHandler.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2023, 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 @@ -123,7 +123,7 @@ public static synchronized void setDefault(CookieHandler cHandler) {
*
* @param uri a {@code URI} representing the intended use for the
* cookies
* @param requestHeaders - a Map from request header
* @param requestHeaders a Map from request header
* field names to lists of field values representing
* the current request headers
* @return an immutable map from state management headers, with
Expand Down
6 changes: 3 additions & 3 deletions src/java.base/share/classes/java/net/ResponseCache.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2023, 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 @@ -129,7 +129,7 @@ public static synchronized void setDefault(ResponseCache responseCache) {
* network resource
* @param rqstMethod a {@code String} representing the request
* method
* @param rqstHeaders - a Map from request header
* @param rqstHeaders a Map from request header
* field names to lists of field values representing
* the current request headers
* @return a {@code CacheResponse} instance if available
Expand Down Expand Up @@ -157,7 +157,7 @@ public static synchronized void setDefault(ResponseCache responseCache) {
*
* @param uri a {@code URI} used to reference the requested
* network resource
* @param conn - a URLConnection instance that is used to fetch
* @param conn a URLConnection instance that is used to fetch
* the response to be cached
* @return a {@code CacheRequest} for recording the
* response to be cached. Null return indicates that
Expand Down

1 comment on commit c90699e

@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.