mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8330178: Clean up non-standard use of /** comments in java.base
Reviewed-by: darcy, iris, dfuchs, aivanov, naoto
This commit is contained in:
parent
88a5dcead2
commit
9cc163a999
23 changed files with 78 additions and 84 deletions
|
@ -1231,12 +1231,10 @@ final class FilePermissionCollection extends PermissionCollection
|
|||
new ObjectStreamField("permissions", Vector.class),
|
||||
};
|
||||
|
||||
/**
|
||||
* @serialData "permissions" field (a Vector containing the FilePermissions).
|
||||
*/
|
||||
/**
|
||||
* Writes the contents of the perms field out as a Vector for
|
||||
* serialization compatibility with earlier releases.
|
||||
* @serialData "permissions" field (a Vector containing the FilePermissions).
|
||||
*
|
||||
* @param out the {@code ObjectOutputStream} to which data is written
|
||||
* @throws IOException if an I/O error occurs
|
||||
|
|
|
@ -139,7 +139,7 @@ public interface ObjectStreamConstants {
|
|||
static final int baseWireHandle = 0x7e0000;
|
||||
|
||||
|
||||
/******************************************************/
|
||||
/* ****************************************************/
|
||||
/* Bit masks for ObjectStreamClass flag.*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -571,7 +571,7 @@ class LambdaForm {
|
|||
return true;
|
||||
}
|
||||
|
||||
/** Invoke this form on the given arguments. */
|
||||
// /** Invoke this form on the given arguments. */
|
||||
// final Object invoke(Object... args) throws Throwable {
|
||||
// // NYI: fit this into the fast path?
|
||||
// return interpretWithArguments(args);
|
||||
|
@ -923,9 +923,9 @@ class LambdaForm {
|
|||
return invocationCounter == -1;
|
||||
}
|
||||
|
||||
/** Interpretively invoke this form on the given arguments. */
|
||||
@Hidden
|
||||
@DontInline
|
||||
/** Interpretively invoke this form on the given arguments. */
|
||||
Object interpretWithArguments(Object... argumentValues) throws Throwable {
|
||||
if (TRACE_INTERPRETER)
|
||||
return interpretWithArgumentsTracing(argumentValues);
|
||||
|
@ -940,9 +940,9 @@ class LambdaForm {
|
|||
return rv;
|
||||
}
|
||||
|
||||
/** Evaluate a single Name within this form, applying its function to its arguments. */
|
||||
@Hidden
|
||||
@DontInline
|
||||
/** Evaluate a single Name within this form, applying its function to its arguments. */
|
||||
Object interpretName(Name name, Object[] values) throws Throwable {
|
||||
if (TRACE_INTERPRETER)
|
||||
traceInterpreter("| interpretName", name.debugString(), (Object[]) null);
|
||||
|
|
|
@ -4843,7 +4843,7 @@ public class BigInteger extends Number implements Comparable<BigInteger> {
|
|||
0x40000000, 0x4cfa3cc1, 0x5c13d840, 0x6d91b519, 0x39aa400
|
||||
};
|
||||
|
||||
/**
|
||||
/*
|
||||
* These routines provide access to the two's complement representation
|
||||
* of BigIntegers.
|
||||
*/
|
||||
|
|
|
@ -25,6 +25,10 @@
|
|||
|
||||
package java.math;
|
||||
|
||||
import static java.math.BigDecimal.INFLATED;
|
||||
import static java.math.BigInteger.LONG_MASK;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* A class used to represent multiprecision integers that makes efficient
|
||||
* use of allocated space by allowing a number to occupy only part of
|
||||
|
@ -42,10 +46,6 @@ package java.math;
|
|||
* @since 1.3
|
||||
*/
|
||||
|
||||
import static java.math.BigDecimal.INFLATED;
|
||||
import static java.math.BigInteger.LONG_MASK;
|
||||
import java.util.Arrays;
|
||||
|
||||
class MutableBigInteger {
|
||||
/**
|
||||
* Holds the magnitude of this MutableBigInteger in big endian order.
|
||||
|
|
|
@ -675,7 +675,7 @@ public abstract class HttpURLConnection extends URLConnection {
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* The response codes for HTTP, as of version 1.1.
|
||||
*/
|
||||
|
||||
|
|
|
@ -2225,7 +2225,7 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
|
|||
Character.isSurrogate((char)ch);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* The following methods handle the main parsing. They are sorted
|
||||
* according to their precedence order, the lowest one first.
|
||||
*/
|
||||
|
@ -2282,10 +2282,10 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("fallthrough")
|
||||
/**
|
||||
* Parsing of sequences between alternations.
|
||||
*/
|
||||
@SuppressWarnings("fallthrough")
|
||||
private Node sequence(Node end) {
|
||||
Node head = null;
|
||||
Node tail = null;
|
||||
|
@ -2409,10 +2409,10 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
|
|||
return head;
|
||||
}
|
||||
|
||||
@SuppressWarnings("fallthrough")
|
||||
/**
|
||||
* Parse and add a new Single or Slice.
|
||||
*/
|
||||
@SuppressWarnings("fallthrough")
|
||||
private Node atom() {
|
||||
int first = 0;
|
||||
int prev = -1;
|
||||
|
@ -3322,10 +3322,10 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
|
|||
return head;
|
||||
}
|
||||
|
||||
@SuppressWarnings("fallthrough")
|
||||
/**
|
||||
* Parses inlined match flags and set them appropriately.
|
||||
*/
|
||||
@SuppressWarnings("fallthrough")
|
||||
private void addFlag() {
|
||||
int ch = peek();
|
||||
for (;;) {
|
||||
|
@ -3364,11 +3364,11 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("fallthrough")
|
||||
/**
|
||||
* Parses the second part of inlined match flags and turns off
|
||||
* flags appropriately.
|
||||
*/
|
||||
@SuppressWarnings("fallthrough")
|
||||
private void subFlag() {
|
||||
int ch = peek();
|
||||
for (;;) {
|
||||
|
@ -3708,7 +3708,7 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
|
|||
return hasSupplementary ? new SliceS(tmp) : new Slice(tmp);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* The following classes are the building components of the object
|
||||
* tree that represents a compiled regular expression. The object tree
|
||||
* is made of individual elements that handle constructs in the Pattern.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue