mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8315457: Implement JEP 459: String Templates (Second Preview)
Reviewed-by: jlahoda, alanb, vromero
This commit is contained in:
parent
5522656af7
commit
9902d2eb17
16 changed files with 34 additions and 50 deletions
|
@ -46,7 +46,6 @@ import java.util.concurrent.ConcurrentHashMap;
|
|||
import java.util.concurrent.RejectedExecutionException;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import jdk.internal.javac.PreviewFeature;
|
||||
import jdk.internal.misc.CarrierThreadLocal;
|
||||
import jdk.internal.module.ServicesCatalog;
|
||||
import jdk.internal.reflect.ConstantPool;
|
||||
|
@ -420,19 +419,16 @@ public interface JavaLangAccess {
|
|||
/**
|
||||
* Get the coder for the supplied character.
|
||||
*/
|
||||
@PreviewFeature(feature=PreviewFeature.Feature.STRING_TEMPLATES)
|
||||
long stringConcatCoder(char value);
|
||||
|
||||
/**
|
||||
* Update lengthCoder for StringBuilder.
|
||||
*/
|
||||
@PreviewFeature(feature=PreviewFeature.Feature.STRING_TEMPLATES)
|
||||
long stringBuilderConcatMix(long lengthCoder, StringBuilder sb);
|
||||
|
||||
/**
|
||||
* Prepend StringBuilder content.
|
||||
*/
|
||||
@PreviewFeature(feature=PreviewFeature.Feature.STRING_TEMPLATES)
|
||||
*/
|
||||
long stringBuilderConcatPrepend(long lengthCoder, byte[] buf, StringBuilder sb);
|
||||
|
||||
/**
|
||||
|
|
|
@ -67,8 +67,7 @@ public @interface PreviewFeature {
|
|||
// not used, but required for interim javac to not warn.
|
||||
VIRTUAL_THREADS,
|
||||
FOREIGN,
|
||||
|
||||
@JEP(number=430, title="String Templates")
|
||||
@JEP(number=459, title="String Templates", status="Second Preview")
|
||||
STRING_TEMPLATES,
|
||||
@JEP(number=445, title="Unnamed Classes and Instance Main Methods")
|
||||
UNNAMED_CLASSES,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue