Skip to content

Commit c90699e

Browse files
committed
8304989: unnecessary dash in @param gives double-dash in docs
Reviewed-by: lancea
1 parent 395a4ce commit c90699e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/java.base/share/classes/java/lang/Enum.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -129,9 +129,9 @@ public final int ordinal() {
129129
* It is for use by code emitted by the compiler in response to
130130
* enum class declarations.
131131
*
132-
* @param name - The name of this enum constant, which is the identifier
132+
* @param name The name of this enum constant, which is the identifier
133133
* used to declare it.
134-
* @param ordinal - The ordinal of this enumeration constant (its position
134+
* @param ordinal The ordinal of this enumeration constant (its position
135135
* in the enum declaration, where the initial constant is assigned
136136
* an ordinal of zero).
137137
*/

src/java.base/share/classes/java/net/CookieHandler.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -123,7 +123,7 @@ public static synchronized void setDefault(CookieHandler cHandler) {
123123
*
124124
* @param uri a {@code URI} representing the intended use for the
125125
* cookies
126-
* @param requestHeaders - a Map from request header
126+
* @param requestHeaders a Map from request header
127127
* field names to lists of field values representing
128128
* the current request headers
129129
* @return an immutable map from state management headers, with

src/java.base/share/classes/java/net/ResponseCache.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -129,7 +129,7 @@ public static synchronized void setDefault(ResponseCache responseCache) {
129129
* network resource
130130
* @param rqstMethod a {@code String} representing the request
131131
* method
132-
* @param rqstHeaders - a Map from request header
132+
* @param rqstHeaders a Map from request header
133133
* field names to lists of field values representing
134134
* the current request headers
135135
* @return a {@code CacheResponse} instance if available
@@ -157,7 +157,7 @@ public static synchronized void setDefault(ResponseCache responseCache) {
157157
*
158158
* @param uri a {@code URI} used to reference the requested
159159
* network resource
160-
* @param conn - a URLConnection instance that is used to fetch
160+
* @param conn a URLConnection instance that is used to fetch
161161
* the response to be cached
162162
* @return a {@code CacheRequest} for recording the
163163
* response to be cached. Null return indicates that

0 commit comments

Comments
 (0)