8334726: Remove accidentally exposed individual methods from Class-File API

Reviewed-by: asotona
This commit is contained in:
Chen Liang 2024-07-03 02:42:06 +00:00
parent f187c92bef
commit 3a2d426489
7 changed files with 7 additions and 37 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -153,7 +153,7 @@ public sealed interface ModuleAttribute
Consumer<ModuleAttributeBuilder> attrHandler) {
var mb = new ModuleAttributeBuilderImpl(moduleName);
attrHandler.accept(mb);
return mb.build();
return mb.build();
}
/**
@ -166,7 +166,7 @@ public sealed interface ModuleAttribute
Consumer<ModuleAttributeBuilder> attrHandler) {
var mb = new ModuleAttributeBuilderImpl(moduleName);
attrHandler.accept(mb);
return mb.build();
return mb.build();
}
/**
@ -319,11 +319,5 @@ public sealed interface ModuleAttribute
* @return this builder
*/
ModuleAttributeBuilder provides(ModuleProvideInfo provides);
/**
* Builds module attribute.
* @return the module attribute
*/
ModuleAttribute build();
}
}

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -74,12 +74,4 @@ public sealed interface CodeRelabeler extends CodeTransform permits CodeRelabele
static CodeRelabeler of(BiFunction<Label, CodeBuilder, Label> mapFunction) {
return new CodeRelabelerImpl(mapFunction);
}
/**
* Access method to internal re-labeling function.
* @param label source label
* @param codeBuilder builder to create new labels
* @return target label
*/
Label relabel(Label label, CodeBuilder codeBuilder);
}

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -92,14 +92,6 @@ public sealed interface ConstantPoolBuilder
*/
boolean canWriteDirect(ConstantPool constantPool);
/**
* Writes associated bootstrap method entries to the specified writer
*
* @param buf the writer
* @return false when no bootstrap method entry has been written
*/
boolean writeBootstrapMethods(BufWriter buf);
/**
* {@return A {@link Utf8Entry} describing the provided {@linkplain String}}
* If a UTF8 entry in the pool already describes this string, it is returned;