mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8234335: Remove line break in class declaration in java.base
Remove line break in class declarations where applicable Reviewed-by: rriggs, lancea
This commit is contained in:
parent
e636c69e61
commit
a8a2246158
103 changed files with 416 additions and 460 deletions
|
@ -544,31 +544,33 @@ abstract class ClassSpecializer<T,K,S extends ClassSpecializer<T,K,S>.SpeciesDat
|
|||
* has a shape like the following:
|
||||
*
|
||||
* <pre>
|
||||
* class TopClass { ... private static
|
||||
* final class Species_LLI extends TopClass {
|
||||
* final Object argL0;
|
||||
* final Object argL1;
|
||||
* final int argI2;
|
||||
* private Species_LLI(CT ctarg, ..., Object argL0, Object argL1, int argI2) {
|
||||
* super(ctarg, ...);
|
||||
* this.argL0 = argL0;
|
||||
* this.argL1 = argL1;
|
||||
* this.argI2 = argI2;
|
||||
* }
|
||||
* final SpeciesData speciesData() { return BMH_SPECIES; }
|
||||
* @Stable static SpeciesData BMH_SPECIES; // injected afterwards
|
||||
* static TopClass make(CT ctarg, ..., Object argL0, Object argL1, int argI2) {
|
||||
* return new Species_LLI(ctarg, ..., argL0, argL1, argI2);
|
||||
* }
|
||||
* final TopClass copyWith(CT ctarg, ...) {
|
||||
* return new Species_LLI(ctarg, ..., argL0, argL1, argI2);
|
||||
* }
|
||||
* // two transforms, for the sake of illustration:
|
||||
* final TopClass copyWithExtendL(CT ctarg, ..., Object narg) {
|
||||
* return BMH_SPECIES.transform(L_TYPE).invokeBasic(ctarg, ..., argL0, argL1, argI2, narg);
|
||||
* }
|
||||
* final TopClass copyWithExtendI(CT ctarg, ..., int narg) {
|
||||
* return BMH_SPECIES.transform(I_TYPE).invokeBasic(ctarg, ..., argL0, argL1, argI2, narg);
|
||||
* class TopClass {
|
||||
* ...
|
||||
* private static final class Species_LLI extends TopClass {
|
||||
* final Object argL0;
|
||||
* final Object argL1;
|
||||
* final int argI2;
|
||||
* private Species_LLI(CT ctarg, ..., Object argL0, Object argL1, int argI2) {
|
||||
* super(ctarg, ...);
|
||||
* this.argL0 = argL0;
|
||||
* this.argL1 = argL1;
|
||||
* this.argI2 = argI2;
|
||||
* }
|
||||
* final SpeciesData speciesData() { return BMH_SPECIES; }
|
||||
* @Stable static SpeciesData BMH_SPECIES; // injected afterwards
|
||||
* static TopClass make(CT ctarg, ..., Object argL0, Object argL1, int argI2) {
|
||||
* return new Species_LLI(ctarg, ..., argL0, argL1, argI2);
|
||||
* }
|
||||
* final TopClass copyWith(CT ctarg, ...) {
|
||||
* return new Species_LLI(ctarg, ..., argL0, argL1, argI2);
|
||||
* }
|
||||
* // two transforms, for the sake of illustration:
|
||||
* final TopClass copyWithExtendL(CT ctarg, ..., Object narg) {
|
||||
* return BMH_SPECIES.transform(L_TYPE).invokeBasic(ctarg, ..., argL0, argL1, argI2, narg);
|
||||
* }
|
||||
* final TopClass copyWithExtendI(CT ctarg, ..., int narg) {
|
||||
* return BMH_SPECIES.transform(I_TYPE).invokeBasic(ctarg, ..., argL0, argL1, argI2, narg);
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
* </pre>
|
||||
|
@ -624,7 +626,8 @@ abstract class ClassSpecializer<T,K,S extends ClassSpecializer<T,K,S>.SpeciesDat
|
|||
}
|
||||
private static final int ACC_PPP = ACC_PUBLIC | ACC_PRIVATE | ACC_PROTECTED;
|
||||
|
||||
/*non-public*/ byte[] generateConcreteSpeciesCodeFile(String className0, ClassSpecializer<T,K,S>.SpeciesData speciesData) {
|
||||
/*non-public*/
|
||||
byte[] generateConcreteSpeciesCodeFile(String className0, ClassSpecializer<T,K,S>.SpeciesData speciesData) {
|
||||
final String className = classBCName(className0);
|
||||
final String superClassName = classBCName(speciesData.deriveSuperClass());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue