8330179: Clean up non-standard use of /** comments in jdk.compiler

Reviewed-by: darcy
This commit is contained in:
Jonathan Gibbons 2024-04-19 19:02:46 +00:00
parent c1dd82b4d2
commit df04358223
15 changed files with 51 additions and 51 deletions

View File

@ -226,7 +226,7 @@ public class ClassFinder {
}
/************************************************************************
/* **********************************************************************
* Temporary ct.sym replacement
*
* The following code is a temporary substitute for the ct.sym mechanism
@ -278,7 +278,7 @@ public class ClassFinder {
private Map<PackageSymbol, Long> supplementaryFlags;
/************************************************************************
/* **********************************************************************
* Loading Classes
***********************************************************************/
@ -455,7 +455,7 @@ public class ClassFinder {
return c;
}
/************************************************************************
/* **********************************************************************
* Loading Packages
***********************************************************************/

View File

@ -110,7 +110,7 @@ public class Flags {
public static final int ACC_VARARGS = 0x0080;
public static final int ACC_MODULE = 0x8000;
/*****************************************
/* ***************************************
* Internal compiler flags (no bits in the lower 16).
*****************************************/
@ -278,7 +278,7 @@ public class Flags {
*/
public static final long THROWS = 1L<<47;
/**
/*
* Currently available: Bit 48.
*/

View File

@ -47,10 +47,10 @@ import static com.sun.tools.javac.main.Option.*;
* deletion without notice.</b>
*/
public enum Source {
/** 1.0 had no inner classes, and so could not pass the JCK. */
/* 1.0 had no inner classes, and so could not pass the JCK. */
// public static final Source JDK1_0 = new Source("1.0");
/** 1.1 did not have strictfp, and so could not pass the JCK. */
/* 1.1 did not have strictfp, and so could not pass the JCK. */
// public static final Source JDK1_1 = new Source("1.1");
/** 1.2 introduced strictfp. */

View File

@ -600,7 +600,7 @@ public abstract class Type extends AnnoConstruct implements TypeMirror, PoolCons
public Type getUpperBound() { return null; }
public Type getLowerBound() { return null; }
/** Navigation methods, these will work for classes, type variables,
/* Navigation methods, these will work for classes, type variables,
* foralls, but will return null for arrays and methods.
*/

View File

@ -1015,7 +1015,7 @@ public class Annotate {
return validRepeated;
}
/********************
/* ******************
* Type annotations *
********************/
@ -1168,7 +1168,7 @@ public class Annotate {
}
}
/*********************
/* *******************
* Completer support *
*********************/

View File

@ -526,7 +526,7 @@ public class Flow {
alive = Liveness.DEAD;
}
/*************************************************************************
/* ***********************************************************************
* Visitor methods for statements and definitions
*************************************************************************/
@ -1330,7 +1330,7 @@ public class Flow {
// Do nothing for modules
}
/**************************************************************************
/* ************************************************************************
* main method
*************************************************************************/
@ -1446,7 +1446,7 @@ public class Flow {
}
}
/*************************************************************************
/* ***********************************************************************
* Visitor methods for statements and definitions
*************************************************************************/
@ -1914,7 +1914,7 @@ public class Flow {
// Do nothing for modules
}
/**************************************************************************
/* ************************************************************************
* main method
*************************************************************************/
@ -3223,7 +3223,7 @@ public class Flow {
// Do nothing for modules
}
/**************************************************************************
/* ************************************************************************
* main method
*************************************************************************/
@ -3342,7 +3342,7 @@ public class Flow {
log.error(pos, Errors.CantRefNonEffectivelyFinalVar(sym, diags.fragment(subKey)));
}
/*************************************************************************
/* ***********************************************************************
* Visitor methods for statements and definitions
*************************************************************************/
@ -3461,7 +3461,7 @@ public class Flow {
// Do nothing for modules
}
/**************************************************************************
/* ************************************************************************
* main method
*************************************************************************/

View File

@ -796,7 +796,7 @@ public class LambdaToMethod extends TreeTranslator {
stmts = new ListBuffer<>();
kInfo.deserializeCases.put(implMethodName, stmts);
}
/****
/* **
System.err.printf("+++++++++++++++++\n");
System.err.printf("*functionalInterfaceClass: '%s'\n", functionalInterfaceClass);
System.err.printf("*functionalInterfaceMethodName: '%s'\n", functionalInterfaceMethodName);

View File

@ -153,7 +153,7 @@ public class Lower extends TreeTranslator {
*/
EndPosTable endPosTable;
/**************************************************************************
/* ************************************************************************
* Global mappings
*************************************************************************/
@ -647,7 +647,7 @@ public class Lower extends TreeTranslator {
}
/**************************************************************************
/* ************************************************************************
* Tree building blocks
*************************************************************************/
@ -784,7 +784,7 @@ public class Lower extends TreeTranslator {
return cdef;
}
/**************************************************************************
/* ************************************************************************
* Symbol manipulation utilities
*************************************************************************/
@ -938,7 +938,7 @@ public class Lower extends TreeTranslator {
}
}
/**************************************************************************
/* ************************************************************************
* Access methods
*************************************************************************/
@ -1513,7 +1513,7 @@ public class Lower extends TreeTranslator {
return md;
}
/**************************************************************************
/* ************************************************************************
* Free variables proxies and this$n
*************************************************************************/
@ -1950,7 +1950,7 @@ public class Lower extends TreeTranslator {
make.Ident(rhs)).setType(lhs.erasure(types)));
}
/**************************************************************************
/* ************************************************************************
* Code for .class
*************************************************************************/
@ -2009,7 +2009,7 @@ public class Lower extends TreeTranslator {
}
}
/**************************************************************************
/* ************************************************************************
* Code for enabling/disabling assertions.
*************************************************************************/
@ -2078,7 +2078,7 @@ public class Lower extends TreeTranslator {
}
/**************************************************************************
/* ************************************************************************
* Building blocks for let expressions
*************************************************************************/
@ -2172,7 +2172,7 @@ public class Lower extends TreeTranslator {
return res;
}
/**************************************************************************
/* ************************************************************************
* Translation methods
*************************************************************************/
@ -4440,7 +4440,7 @@ public class Lower extends TreeTranslator {
super.visitTry(tree);
}
/**************************************************************************
/* ************************************************************************
* main method
*************************************************************************/

View File

@ -897,7 +897,7 @@ public class TransTypes extends TreeTranslator {
result = tree;
}
/**************************************************************************
/* ************************************************************************
* utility methods
*************************************************************************/
@ -905,7 +905,7 @@ public class TransTypes extends TreeTranslator {
return types.erasure(t);
}
/**************************************************************************
/* ************************************************************************
* main method
*************************************************************************/

View File

@ -143,7 +143,7 @@ public class ClassFile {
}
/************************************************************************
/* **********************************************************************
* String Translation Routines
***********************************************************************/

View File

@ -308,7 +308,7 @@ public class ClassReader {
c.members_field.enter(sym);
}
/************************************************************************
/* **********************************************************************
* Error Diagnoses
***********************************************************************/
@ -338,7 +338,7 @@ public class ClassReader {
dcfh);
}
/************************************************************************
/* **********************************************************************
* Buffer Access
***********************************************************************/
@ -378,7 +378,7 @@ public class ClassReader {
return res;
}
/************************************************************************
/* **********************************************************************
* Constant Pool Access
***********************************************************************/
@ -437,7 +437,7 @@ public class ClassReader {
return set;
}
/************************************************************************
/* **********************************************************************
* Reading Types
***********************************************************************/
@ -791,7 +791,7 @@ public class ClassReader {
}
}
/************************************************************************
/* **********************************************************************
* Reading Attributes
***********************************************************************/
@ -1462,7 +1462,7 @@ public class ClassReader {
return null;
}
/************************************************************************
/* **********************************************************************
* Reading Java-language annotations
***********************************************************************/
@ -2579,7 +2579,7 @@ public class ClassReader {
}
}
/************************************************************************
/* **********************************************************************
* Reading Symbols
***********************************************************************/
@ -3122,7 +3122,7 @@ public class ClassReader {
*/
public boolean filling = false;
/************************************************************************
/* **********************************************************************
* Adjusting flags
***********************************************************************/

View File

@ -196,7 +196,7 @@ public class ClassWriter extends ClassFile {
extraAttributeHooks = extraAttributeHooks.prepend(addExtraAttributes);
}
/******************************************************************
/* ****************************************************************
* Diagnostics: dump generated class names and modifiers
******************************************************************/
@ -237,7 +237,7 @@ public class ClassWriter extends ClassFile {
"SUPER", "VOLATILE", "TRANSIENT", "NATIVE", "INTERFACE",
"ABSTRACT", "STRICTFP"};
/******************************************************************
/* ****************************************************************
* Output routines
******************************************************************/
@ -259,7 +259,7 @@ public class ClassWriter extends ClassFile {
buf.elems[adr+3] = (byte)((x ) & 0xFF);
}
/******************************************************************
/* ****************************************************************
* Writing the Constant Pool
******************************************************************/
@ -277,7 +277,7 @@ public class ClassWriter extends ClassFile {
}
}
/******************************************************************
/* ****************************************************************
* Writing Attributes
******************************************************************/
@ -480,7 +480,7 @@ public class ClassWriter extends ClassFile {
return attrCount;
}
/**********************************************************************
/* ********************************************************************
* Writing Java-language annotations (aka metadata, attributes)
**********************************************************************/
@ -741,7 +741,7 @@ public class ClassWriter extends ClassFile {
}
}
/**********************************************************************
/* ********************************************************************
* Writing module attributes
**********************************************************************/
@ -823,7 +823,7 @@ public class ClassWriter extends ClassFile {
return 1;
}
/**********************************************************************
/* ********************************************************************
* Writing Objects
**********************************************************************/

View File

@ -1219,7 +1219,7 @@ public class Code {
return !alive || state.stacksize == letExprStackPos;
}
/**************************************************************************
/* ************************************************************************
* Stack map generation
*************************************************************************/
@ -1394,7 +1394,7 @@ public class Code {
}
/**************************************************************************
/* ************************************************************************
* Operations having to do with jumps
*************************************************************************/
@ -2238,7 +2238,7 @@ public class Code {
for (int i = nextreg; i < prevNextReg; i++) endScope(i);
}
/**************************************************************************
/* ************************************************************************
* static tables
*************************************************************************/

View File

@ -417,7 +417,7 @@ public class Pretty extends JCTree.Visitor {
return v.result;
}
/**************************************************************************
/* ************************************************************************
* Visitor methods
*************************************************************************/

View File

@ -819,7 +819,7 @@ public class Log extends AbstractLog {
// backdoor hook for testing, should transition to use -XDrawDiagnostics
private static boolean useRawMessages = false;
/***************************************************************************
/* *************************************************************************
* raw error messages without internationalization; used for experimentation
* and quick prototyping
***************************************************************************/