Skip to content

Commit fe03e2e

Browse files
committedMar 25, 2025
8351897: Extra closing curly brace typos in Javadoc
Reviewed-by: liach
1 parent fa0b18b commit fe03e2e

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed
 

‎src/java.base/share/classes/java/lang/classfile/package-info.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
* <p>
169169
* For nonstandard attributes, user-provided attribute mappers can be specified
170170
* through the use of the {@link
171-
* ClassFile.AttributeMapperOption#of(Function)}}
171+
* ClassFile.AttributeMapperOption#of(Function)}
172172
* classfile option. Implementations of custom attributes should extend {@link
173173
* CustomAttribute}.
174174
*
@@ -185,11 +185,11 @@
185185
* -- unrecognized or problematic original attributes (default is {@code PASS_ALL_ATTRIBUTES})</li>
186186
* <li>{@link ClassFile.ClassHierarchyResolverOption#of(ClassHierarchyResolver)}
187187
* -- specify a custom class hierarchy resolver used by stack map generation</li>
188-
* <li>{@link ClassFile.ConstantPoolSharingOption}}
188+
* <li>{@link ClassFile.ConstantPoolSharingOption}
189189
* -- share constant pool when transforming (default is {@code SHARED_POOL})</li>
190-
* <li>{@link ClassFile.DeadCodeOption}}
190+
* <li>{@link ClassFile.DeadCodeOption}
191191
* -- patch out unreachable code (default is {@code PATCH_DEAD_CODE})</li>
192-
* <li>{@link ClassFile.DeadLabelsOption}}
192+
* <li>{@link ClassFile.DeadLabelsOption}
193193
* -- filter unresolved labels (default is {@code FAIL_ON_DEAD_LABELS})</li>
194194
* <li>{@link ClassFile.DebugElementsOption}
195195
* -- processing of debug information, such as local variable metadata (default is {@code PASS_DEBUG}) </li>

‎src/java.base/share/classes/java/net/NetworkInterface.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2025, 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
@@ -366,7 +366,7 @@ public static Enumeration<NetworkInterface> getNetworkInterfaces()
366366
* this machine.
367367
*
368368
* @apiNote This method can be used in combination with
369-
* {@link #inetAddresses()}} to obtain a stream of all IP addresses for
369+
* {@link #inetAddresses()} to obtain a stream of all IP addresses for
370370
* this node, for example:
371371
* <pre> {@code
372372
* Stream<InetAddress> addrs = NetworkInterface.networkInterfaces()

‎src/java.base/share/classes/java/text/MessageFormat.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1996, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1996, 2025, 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
@@ -316,15 +316,15 @@
316316
* <th scope="row" style="font-weight:normal" rowspan=3>{@code list}
317317
* <th scope="row" style="font-weight:normal"><i>(none)</i>
318318
* <td>{@link ListFormat#getInstance(Locale, ListFormat.Type, ListFormat.Style)
319-
* ListFormat.getInstance}{@code (getLocale()}, {@link ListFormat.Type#STANDARD}, {@link ListFormat.Style#FULL})
319+
* ListFormat.getInstance}{@code (getLocale()}, {@link ListFormat.Type#STANDARD}, {@link ListFormat.Style#FULL}{@code )}
320320
* <tr>
321321
* <th scope="row" style="font-weight:normal">{@code or}
322322
* <td>{@link ListFormat#getInstance(Locale, ListFormat.Type, ListFormat.Style)
323-
* ListFormat.getInstance}{@code (getLocale()}, {@link ListFormat.Type#OR}, {@link ListFormat.Style#FULL})
323+
* ListFormat.getInstance}{@code (getLocale()}, {@link ListFormat.Type#OR}, {@link ListFormat.Style#FULL}{@code )}
324324
* <tr>
325325
* <th scope="row" style="font-weight:normal">{@code unit}
326326
* <td>{@link ListFormat#getInstance(Locale, ListFormat.Type, ListFormat.Style)
327-
* ListFormat.getInstance}{@code (getLocale()}, {@link ListFormat.Type#UNIT}, {@link ListFormat.Style#FULL}}
327+
* ListFormat.getInstance}{@code (getLocale()}, {@link ListFormat.Type#UNIT}, {@link ListFormat.Style#FULL}{@code )}
328328
* </tbody>
329329
* </table>
330330
*

‎src/java.base/share/classes/java/util/stream/AbstractTask.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2025, 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
@@ -222,7 +222,7 @@ public R getRawResult() {
222222

223223
/**
224224
* Does nothing; instead, subclasses should use
225-
* {@link #setLocalResult(Object)}} to manage results.
225+
* {@link #setLocalResult(Object)} to manage results.
226226
*
227227
* @param result must be null, or an exception is thrown (this is a safety
228228
* tripwire to detect when {@code setRawResult()} is being used

‎src/java.base/share/classes/java/util/stream/Collectors.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2025, 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
@@ -833,7 +833,7 @@ static double computeFinalSum(double[] summands) {
833833
* The {@code reducing()} collectors are most useful when used in a
834834
* multi-level reduction, downstream of {@code groupingBy} or
835835
* {@code partitioningBy}. To perform a simple reduction on a stream,
836-
* use {@link Stream#reduce(Object, BinaryOperator)}} instead.
836+
* use {@link Stream#reduce(Object, BinaryOperator)} instead.
837837
*
838838
* @param <T> element type for the input and output of the reduction
839839
* @param identity the identity value for the reduction (also, the value

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Mar 25, 2025

@openjdk-notifier[bot]
Please sign in to comment.