Skip to content

Commit 97c9212

Browse files
committed
8342698: Fix order of @param tags in module java.base
Reviewed-by: iris
1 parent 51a7ff6 commit 97c9212

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

src/java.base/share/classes/java/lang/invoke/MethodHandles.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ public static <T> T classDataAt(Lookup caller, String name, Class<T> type, int i
463463
* If there is a security manager, its {@code checkPermission} method
464464
* is called with a {@code ReflectPermission("suppressAccessChecks")} permission.
465465
* @param <T> the desired type of the result, either {@link Member} or a subtype
466-
* @param target a direct method handle to crack into symbolic reference components
467466
* @param expected a class object representing the desired result type {@code T}
467+
* @param target a direct method handle to crack into symbolic reference components
468468
* @return a reference to the method, constructor, or field object
469469
* @throws SecurityException if the caller is not privileged to call {@code setAccessible}
470470
* @throws NullPointerException if either argument is {@code null}

src/java.base/share/classes/java/lang/invoke/VarHandle.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2024, 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
@@ -2371,9 +2371,9 @@ private VarHandleDesc(Kind kind, String name, ClassDesc declaringClass, ClassDes
23712371
* Returns a {@linkplain VarHandleDesc} corresponding to a {@link VarHandle}
23722372
* for an instance field.
23732373
*
2374-
* @param name the unqualified name of the field
23752374
* @param declaringClass a {@link ClassDesc} describing the declaring class,
23762375
* for field var handles
2376+
* @param name the unqualified name of the field
23772377
* @param fieldType a {@link ClassDesc} describing the type of the field
23782378
* @return the {@linkplain VarHandleDesc}
23792379
* @throws NullPointerException if any of the arguments are null
@@ -2390,9 +2390,9 @@ public static VarHandleDesc ofField(ClassDesc declaringClass, String name, Class
23902390
* Returns a {@linkplain VarHandleDesc} corresponding to a {@link VarHandle}
23912391
* for a static field.
23922392
*
2393-
* @param name the unqualified name of the field
23942393
* @param declaringClass a {@link ClassDesc} describing the declaring class,
23952394
* for field var handles
2395+
* @param name the unqualified name of the field
23962396
* @param fieldType a {@link ClassDesc} describing the type of the field
23972397
* @return the {@linkplain VarHandleDesc}
23982398
* @throws NullPointerException if any of the arguments are null

src/java.base/share/classes/java/security/cert/CertificateRevokedException.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ private static boolean isNull(Date revocationDate,
8686
* @param revocationDate the date on which the certificate was revoked. The
8787
* date is copied to protect against subsequent modification.
8888
* @param reason the revocation reason
89-
* @param extensions a map of X.509 Extensions. Each key is an OID String
90-
* that maps to the corresponding Extension. The map is copied to
91-
* prevent subsequent modification.
9289
* @param authority the {@code X500Principal} that represents the name
9390
* of the authority that signed the certificate's revocation status
9491
* information
92+
* @param extensions a map of X.509 Extensions. Each key is an OID String
93+
* that maps to the corresponding Extension. The map is copied to
94+
* prevent subsequent modification.
9595
* @throws NullPointerException if {@code revocationDate},
9696
* {@code reason}, {@code authority}, or
9797
* {@code extensions} is {@code null}

src/java.base/share/classes/java/security/interfaces/DSAKeyPairGenerator.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2024, 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
@@ -105,12 +105,12 @@ public interface DSAKeyPairGenerator {
105105
* @param modlen the modulus length in bits. Valid values are any
106106
* multiple of 64 between 512 and 1024, inclusive, 2048, and 3072.
107107
*
108-
* @param random the random bit source to use to generate key bits;
109-
* can be null.
110-
*
111108
* @param genParams whether to generate new parameters for
112109
* the modulus length requested.
113110
*
111+
* @param random the random bit source to use to generate key bits;
112+
* can be null.
113+
*
114114
* @throws InvalidParameterException if {@code modlen} is
115115
* invalid, or unsupported, or if {@code genParams} is false and there
116116
* are no precomputed parameters for the requested modulus length.

src/java.base/share/classes/java/util/Arrays.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -3491,8 +3491,8 @@ public static <T> T[] copyOf(T[] original, int newLength) {
34913491
* is greater than that of the original array.
34923492
* The resulting array is of the class {@code newType}.
34933493
*
3494-
* @param <U> the class of the objects in the original array
34953494
* @param <T> the class of the objects in the returned array
3495+
* @param <U> the class of the objects in the original array
34963496
* @param original the array to be copied
34973497
* @param newLength the length of the copy to be returned
34983498
* @param newType the class of the copy to be returned
@@ -3782,8 +3782,8 @@ public static <T> T[] copyOfRange(T[] original, int from, int to) {
37823782
* of the returned array will be {@code to - from}.
37833783
* The resulting array is of the class {@code newType}.
37843784
*
3785-
* @param <U> the class of the objects in the original array
37863785
* @param <T> the class of the objects in the returned array
3786+
* @param <U> the class of the objects in the original array
37873787
* @param original the array from which a range is to be copied
37883788
* @param from the initial index of the range to be copied, inclusive
37893789
* @param to the final index of the range to be copied, exclusive.

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2024, 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
@@ -1088,13 +1088,13 @@ public void accept(T t) {
10881088
*
10891089
* @param <T> the type of the input elements
10901090
* @param <K> the type of the keys
1091-
* @param <A> the intermediate accumulation type of the downstream collector
10921091
* @param <D> the result type of the downstream reduction
1092+
* @param <A> the intermediate accumulation type of the downstream collector
10931093
* @param <M> the type of the resulting {@code Map}
10941094
* @param classifier a classifier function mapping input elements to keys
1095-
* @param downstream a {@code Collector} implementing the downstream reduction
10961095
* @param mapFactory a supplier providing a new empty {@code Map}
10971096
* into which the results will be inserted
1097+
* @param downstream a {@code Collector} implementing the downstream reduction
10981098
* @return a {@code Collector} implementing the cascaded group-by operation
10991099
*
11001100
* @see #groupingBy(Function, Collector)
@@ -1250,9 +1250,9 @@ public void accept(T t) {
12501250
* @param <D> the result type of the downstream reduction
12511251
* @param <M> the type of the resulting {@code ConcurrentMap}
12521252
* @param classifier a classifier function mapping input elements to keys
1253-
* @param downstream a {@code Collector} implementing the downstream reduction
12541253
* @param mapFactory a supplier providing a new empty {@code ConcurrentMap}
12551254
* into which the results will be inserted
1255+
* @param downstream a {@code Collector} implementing the downstream reduction
12561256
* @return a concurrent, unordered {@code Collector} implementing the cascaded group-by operation
12571257
*
12581258
* @see #groupingByConcurrent(Function)
@@ -1347,8 +1347,8 @@ public void accept(T t) {
13471347
* applying the finisher function.
13481348
*
13491349
* @param <T> the type of the input elements
1350-
* @param <A> the intermediate accumulation type of the downstream collector
13511350
* @param <D> the result type of the downstream reduction
1351+
* @param <A> the intermediate accumulation type of the downstream collector
13521352
* @param predicate a predicate used for classifying input elements
13531353
* @param downstream a {@code Collector} implementing the downstream
13541354
* reduction

0 commit comments

Comments
 (0)