File tree Expand file tree Collapse file tree 2 files changed +27
-9
lines changed
src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/imagelayer Expand file tree Collapse file tree 2 files changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -2543,14 +2543,24 @@ def capnp_compile(args):
2543
2543
* or visit www.oracle.com if you need additional information or have any
2544
2544
* questions.
2545
2545
*/
2546
- //@formatter:off
2547
- //Checkstyle: stop
2548
- // Generated via:
2549
- // $ mx capnp-compile
2546
+ // @formatter:off
2547
+ // Checkstyle: stop
2550
2548
""" )
2551
2549
for line in lines :
2552
2550
if line .startswith ("public final class " ):
2553
- f .write ('@SuppressWarnings("all")\n ' )
2551
+ f .write (
2552
+ """import org.graalvm.nativeimage.Platform;
2553
+ import org.graalvm.nativeimage.Platforms;
2554
+
2555
+ /**
2556
+ * This class contains the methods used by the Native Image Layers feature to communicate with the Cap'n Proto Java runtime.
2557
+ * The Native Image Layers feature uses Cap'n Proto to serialize and deserialize metadata between layered build processes.
2558
+ * This file is generated from the {@code SharedLayerSnapshotCapnProtoSchema.capnp} schema file using {@code mx capnp-compile}
2559
+ * and should not be modified manually.
2560
+ */
2561
+ @Platforms(Platform.HOSTED_ONLY.class)
2562
+ @SuppressWarnings("all")
2563
+ """ )
2554
2564
if 'public static final class Schemas {' in line :
2555
2565
break
2556
2566
# Replace org.capnproto with com.oracle.svm.shaded.org.capnproto in generated code
Original file line number Diff line number Diff line change 22
22
* or visit www.oracle.com if you need additional information or have any
23
23
* questions.
24
24
*/
25
- //@formatter:off
26
- //Checkstyle: stop
27
- // Generated via:
28
- // $ mx capnp-compile
25
+ // @formatter:off
26
+ // Checkstyle: stop
29
27
// Generated by Cap'n Proto compiler, DO NOT EDIT
30
28
// source: SharedLayerSnapshotCapnProtoSchema.capnp
31
29
32
30
package com .oracle .svm .hosted .imagelayer ;
33
31
32
+ import org .graalvm .nativeimage .Platform ;
33
+ import org .graalvm .nativeimage .Platforms ;
34
+
35
+ /**
36
+ * This class contains the methods used by the Native Image Layers feature to communicate with the Cap'n Proto Java runtime.
37
+ * The Native Image Layers feature uses Cap'n Proto to serialize and deserialize metadata between layered build processes.
38
+ * This file is generated from the {@code SharedLayerSnapshotCapnProtoSchema.capnp} schema file using {@code mx capnp-compile}
39
+ * and should not be modified manually.
40
+ */
41
+ @ Platforms (Platform .HOSTED_ONLY .class )
34
42
@ SuppressWarnings ("all" )
35
43
public final class SharedLayerSnapshotCapnProtoSchemaHolder {
36
44
public static class PersistedAnalysisType {
You can’t perform that action at this time.
0 commit comments