Skip to content

Commit c6f3ac4

Browse files
committed
Update JDK
1 parent 94455b7 commit c6f3ac4

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

jdk

Submodule jdk updated 4456 files

src/main/java/io/github/dmlloyd/classfile/impl/ClassFileImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -90,7 +90,6 @@ private ClassFileImpl(Option stackMapsOption,
9090
null // _ -> null
9191
);
9292

93-
@SuppressWarnings("unchecked")
9493
@Override
9594
public ClassFileImpl withOptions(Option... options) {
9695
var smo = stackMapsOption;

src/main/java/io/github/dmlloyd/classfile/impl/CodeImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -279,7 +279,6 @@ else if (i instanceof TableSwitchInstruction ts) {
279279
}
280280
return;
281281
}
282-
@SuppressWarnings("unchecked")
283282
int stackMapPos = ((BoundAttribute<StackMapTableAttribute>) a.get()).payloadStart;
284283

285284
int bci = -1; //compensate for offsetDelta + 1

src/main/java/io/github/dmlloyd/classfile/package-info.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
* <p>
169169
* For nonstandard attributes, user-provided attribute mappers can be specified
170170
* through the use of the {@link
171-
* ClassFile.AttributeMapperOption#of(Function)}}
171+
* ClassFile.AttributeMapperOption#of(Function)}
172172
* classfile option. Implementations of custom attributes should extend {@link
173173
* CustomAttribute}.
174174
*
@@ -185,11 +185,11 @@
185185
* -- unrecognized or problematic original attributes (default is {@code PASS_ALL_ATTRIBUTES})</li>
186186
* <li>{@link ClassFile.ClassHierarchyResolverOption#of(ClassHierarchyResolver)}
187187
* -- specify a custom class hierarchy resolver used by stack map generation</li>
188-
* <li>{@link ClassFile.ConstantPoolSharingOption}}
188+
* <li>{@link ClassFile.ConstantPoolSharingOption}
189189
* -- share constant pool when transforming (default is {@code SHARED_POOL})</li>
190-
* <li>{@link ClassFile.DeadCodeOption}}
190+
* <li>{@link ClassFile.DeadCodeOption}
191191
* -- patch out unreachable code (default is {@code PATCH_DEAD_CODE})</li>
192-
* <li>{@link ClassFile.DeadLabelsOption}}
192+
* <li>{@link ClassFile.DeadLabelsOption}
193193
* -- filter unresolved labels (default is {@code FAIL_ON_DEAD_LABELS})</li>
194194
* <li>{@link ClassFile.DebugElementsOption}
195195
* -- processing of debug information, such as local variable metadata (default is {@code PASS_DEBUG}) </li>
@@ -368,13 +368,13 @@
368368
* <p>
369369
* or lift the code transform into the class transform directly:
370370
* {@snippet lang=java :
371-
* ClassTransform ct = ClassTransform.transformingMethodBodiess(fooToBar);
371+
* ClassTransform ct = ClassTransform.transformingMethodBodies(fooToBar);
372372
* }
373373
* <p>
374374
* and then transform the classfile:
375375
* {@snippet lang=java :
376376
* var cc = ClassFile.of();
377-
* byte[] newBytes = cc.transform(cc.parse(bytes), ct);
377+
* byte[] newBytes = cc.transformClass(cc.parse(bytes), ct);
378378
* }
379379
* <p>
380380
* This is much more concise (and less error-prone) than the equivalent
@@ -393,7 +393,7 @@
393393
*
394394
* {@snippet lang=java :
395395
* var cc = ClassFile.of();
396-
* byte[] newBytes = cc.transform(cc.parse(bytes),
396+
* byte[] newBytes = cc.transformClass(cc.parse(bytes),
397397
* ClassTransform.transformingMethods(
398398
* MethodTransform.transformingCode(
399399
* fooToBar.andThen(instrumentCalls))));

0 commit comments

Comments
 (0)