mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8335642: Hide Transform implementation for Class-File API
Reviewed-by: asotona
This commit is contained in:
parent
2b0adfc2de
commit
a253e0ff4b
9 changed files with 66 additions and 136 deletions
|
@ -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
|
||||
|
@ -111,15 +111,4 @@ public non-sealed interface FieldTransform
|
|||
default FieldTransform andThen(FieldTransform t) {
|
||||
return new TransformImpl.ChainedFieldTransform(this, t);
|
||||
}
|
||||
|
||||
/**
|
||||
* @implSpec The default implementation returns a resolved transform bound
|
||||
* to the given field builder.
|
||||
*/
|
||||
@Override
|
||||
default ResolvedTransform<FieldElement> resolve(FieldBuilder builder) {
|
||||
return new TransformImpl.ResolvedTransformImpl<>(e -> accept(builder, e),
|
||||
() -> atEnd(builder),
|
||||
() -> atStart(builder));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue