From 9b1a17ce8f20a40a6041ee9e7de903e470798093 Mon Sep 17 00:00:00 2001 From: Olya Gupalo Date: Mon, 18 Aug 2025 10:17:19 +0300 Subject: [PATCH] Use shorter UPL licence header and update copyright year --- LICENSE.md | 2 +- compiler/java-stream-benchmark/pom.xml | 23 +-------- .../demos/JavaSimpleStreamBenchmark.java | 42 ++-------------- .../access-environment-variables/EnvMap.java | 40 ++-------------- native-image/add-jfr/JFRDemo.java | 40 ++-------------- native-image/add-jmx/SimpleJmx.java | 39 +-------------- .../add-logging/LoggerBuildTimeInit.java | 42 ++-------------- .../add-logging/LoggerRunTimeInit.java | 42 ++-------------- .../java/bench/shootouts/BinaryTrees.java | 40 +--------------- .../build-from-jar/src/com/example/App.java | 40 ++-------------- .../src/main/java/hello/Main.java | 40 ++-------------- .../src/main/java/module-info.java | 40 ++-------------- .../build-shared-library/LibEnvMap.java | 39 +-------------- native-image/build-shared-library/main.c | 40 ++-------------- native-image/build-static-images/EnvMap.java | 39 +-------------- .../java/com/example/PrettyPrintJSON.java | 42 ++-------------- .../java/example/micronaut/Application.java | 40 ++-------------- .../example/micronaut/HelloController.java | 48 +++---------------- .../micronaut/HelloControllerTest.java | 46 +++--------------- .../example/micronaut/MicronautguideTest.java | 39 +-------------- .../example/micronaut/HomeController.java | 39 +-------------- .../example/micronaut/HomeControllerTest.java | 39 +-------------- .../java/example/micronaut/Application.java | 40 ++-------------- .../example/micronaut/HelloController.java | 48 +++---------------- .../micronaut/HelloControllerTest.java | 46 +++--------------- .../example/micronaut/MicronautguideTest.java | 39 +-------------- .../src/main/java/com/gvm/samples/App.java | 42 ++-------------- .../test/java/com/gvm/samples/AppTest.java | 42 ++-------------- .../native-oci-container-instances/pom.xml | 2 +- .../java/example/micronaut/Application.java | 39 +-------------- .../example/micronaut/HelloController.java | 47 +++--------------- .../clouds/native-oci-generative-ai/README.md | 8 ++-- .../com/oracle/labs/GenerateTextExample.java | 40 ++-------------- .../ReflectionExample.java | 40 ++-------------- .../create-heap-dumps/SVMHeapDump.java | 41 ++-------------- .../create-heap-dumps/SVMHeapDumpAPI.java | 43 ++--------------- .../java/com/sbom/SBOMTestApplication.java | 39 +-------------- .../emit-build-report/1-original/IthWord.java | 39 +-------------- .../2-optimized/IthWord.java | 39 +-------------- .../3-optimized/IthWord.java | 39 +-------------- .../src/com/example/HelloWorld.java | 40 ++-------------- .../java/org/graalvm/example/H2Example.java | 39 +-------------- native-image/include-resources/Fortune.java | 45 ++--------------- native-image/list-files/ListDir.java | 41 ++-------------- native-image/list-files/README.md | 4 +- .../main/java/com/example/Application.java | 39 +-------------- .../java/com/example/HelloController.java | 40 +--------------- .../test/java/hello/HelloControllerTest.java | 6 +++ .../src/test/java/hello/HelloTest.java | 6 +++ .../main/java/com/example/Application.java | 39 +-------------- .../java/com/example/HelloController.java | 40 ++-------------- .../java/com/example/HelloControllerTest.java | 48 +++---------------- .../java/com/example/MnHelloRestTest.java | 40 ++-------------- .../src/main/java/demo/Fortune.java | 45 ++--------------- .../src/main/java/demo/Fortune.java | 45 ++--------------- .../optimize-memory/StringManipulation.java | 40 ++-------------- native-image/optimize-with-pgo/Streams.java | 39 +-------------- .../graalvm/example/ReflectionExample.java | 40 ++-------------- .../example/action/StringCapitalizer.java | 39 +-------------- .../example/action/StringReverser.java | 39 +-------------- .../specify-class-init/TalkParser.java | 39 +-------------- .../benchmarks/jibber/DemoApplication.java | 5 +- .../benchmarks/jibber/Jabberwocky.java | 5 +- .../helloworld/Hello.java | 39 +-------------- native-image/use-system-properties/README.md | 12 ++--- .../use-system-properties/ReadProperties.java | 48 +++---------------- 66 files changed, 217 insertions(+), 2159 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 57bc7f7cd..ffc185e7d 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2018, 2024 Oracle and/or its affiliates. +Copyright (c) 2018, 2025 Oracle and/or its affiliates. The Universal Permissive License (UPL), Version 1.0 diff --git a/compiler/java-stream-benchmark/pom.xml b/compiler/java-stream-benchmark/pom.xml index 6b343052e..f489cad1d 100644 --- a/compiler/java-stream-benchmark/pom.xml +++ b/compiler/java-stream-benchmark/pom.xml @@ -1,26 +1,7 @@ #include diff --git a/native-image/build-static-images/EnvMap.java b/native-image/build-static-images/EnvMap.java index 91dba07d0..ab65bffd1 100644 --- a/native-image/build-static-images/EnvMap.java +++ b/native-image/build-static-images/EnvMap.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2023, 2024 Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ import java.util.Map; diff --git a/native-image/build-with-js-embedded/src/main/java/com/example/PrettyPrintJSON.java b/native-image/build-with-js-embedded/src/main/java/com/example/PrettyPrintJSON.java index 6445f881c..d4bd2e52b 100644 --- a/native-image/build-with-js-embedded/src/main/java/com/example/PrettyPrintJSON.java +++ b/native-image/build-with-js-embedded/src/main/java/com/example/PrettyPrintJSON.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package com.example; import java.io.*; @@ -56,4 +22,4 @@ public static void main(String[] args) throws java.io.IOException { System.out.println(result.asString()); } } -} \ No newline at end of file +} \ No newline at end of file diff --git a/native-image/clouds/native-aws-fargate/src/main/java/example/micronaut/Application.java b/native-image/clouds/native-aws-fargate/src/main/java/example/micronaut/Application.java index 164a8f2bd..06bbe2966 100644 --- a/native-image/clouds/native-aws-fargate/src/main/java/example/micronaut/Application.java +++ b/native-image/clouds/native-aws-fargate/src/main/java/example/micronaut/Application.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package example.micronaut; import io.micronaut.runtime.Micronaut; diff --git a/native-image/clouds/native-aws-fargate/src/main/java/example/micronaut/HelloController.java b/native-image/clouds/native-aws-fargate/src/main/java/example/micronaut/HelloController.java index 23a98d9d6..c197abf1c 100644 --- a/native-image/clouds/native-aws-fargate/src/main/java/example/micronaut/HelloController.java +++ b/native-image/clouds/native-aws-fargate/src/main/java/example/micronaut/HelloController.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package example.micronaut; import io.micronaut.http.MediaType; @@ -45,11 +11,11 @@ import io.micronaut.http.annotation.Get; import io.micronaut.http.annotation.Produces; -@Controller("/hello") +@Controller("/hello") public class HelloController { - @Get - @Produces(MediaType.TEXT_PLAIN) + @Get + @Produces(MediaType.TEXT_PLAIN) public String index() { - return "Hello World"; + return "Hello World"; } } diff --git a/native-image/clouds/native-aws-fargate/src/test/java/example/micronaut/HelloControllerTest.java b/native-image/clouds/native-aws-fargate/src/test/java/example/micronaut/HelloControllerTest.java index d58c7e43d..771bb9b3a 100644 --- a/native-image/clouds/native-aws-fargate/src/test/java/example/micronaut/HelloControllerTest.java +++ b/native-image/clouds/native-aws-fargate/src/test/java/example/micronaut/HelloControllerTest.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package example.micronaut; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -51,16 +17,16 @@ import jakarta.inject.Inject; -@MicronautTest +@MicronautTest public class HelloControllerTest { @Inject - @Client("/") + @Client("/") HttpClient client; @Test public void testHello() { - HttpRequest request = HttpRequest.GET("/hello"); + HttpRequest request = HttpRequest.GET("/hello"); String body = client.toBlocking().retrieve(request); assertNotNull(body); diff --git a/native-image/clouds/native-aws-fargate/src/test/java/example/micronaut/MicronautguideTest.java b/native-image/clouds/native-aws-fargate/src/test/java/example/micronaut/MicronautguideTest.java index 1c912e0e7..4edc3c3fd 100644 --- a/native-image/clouds/native-aws-fargate/src/test/java/example/micronaut/MicronautguideTest.java +++ b/native-image/clouds/native-aws-fargate/src/test/java/example/micronaut/MicronautguideTest.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package example.micronaut; diff --git a/native-image/clouds/native-aws-lambda/src/main/java/example/micronaut/HomeController.java b/native-image/clouds/native-aws-lambda/src/main/java/example/micronaut/HomeController.java index e9636da42..c96dede03 100644 --- a/native-image/clouds/native-aws-lambda/src/main/java/example/micronaut/HomeController.java +++ b/native-image/clouds/native-aws-lambda/src/main/java/example/micronaut/HomeController.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package example.micronaut; diff --git a/native-image/clouds/native-aws-lambda/src/test/java/example/micronaut/HomeControllerTest.java b/native-image/clouds/native-aws-lambda/src/test/java/example/micronaut/HomeControllerTest.java index b19a7371e..419c6e10f 100644 --- a/native-image/clouds/native-aws-lambda/src/test/java/example/micronaut/HomeControllerTest.java +++ b/native-image/clouds/native-aws-lambda/src/test/java/example/micronaut/HomeControllerTest.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package example.micronaut; diff --git a/native-image/clouds/native-google-cloud-run/src/main/java/example/micronaut/Application.java b/native-image/clouds/native-google-cloud-run/src/main/java/example/micronaut/Application.java index 164a8f2bd..06bbe2966 100644 --- a/native-image/clouds/native-google-cloud-run/src/main/java/example/micronaut/Application.java +++ b/native-image/clouds/native-google-cloud-run/src/main/java/example/micronaut/Application.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package example.micronaut; import io.micronaut.runtime.Micronaut; diff --git a/native-image/clouds/native-google-cloud-run/src/main/java/example/micronaut/HelloController.java b/native-image/clouds/native-google-cloud-run/src/main/java/example/micronaut/HelloController.java index 23a98d9d6..c197abf1c 100644 --- a/native-image/clouds/native-google-cloud-run/src/main/java/example/micronaut/HelloController.java +++ b/native-image/clouds/native-google-cloud-run/src/main/java/example/micronaut/HelloController.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package example.micronaut; import io.micronaut.http.MediaType; @@ -45,11 +11,11 @@ import io.micronaut.http.annotation.Get; import io.micronaut.http.annotation.Produces; -@Controller("/hello") +@Controller("/hello") public class HelloController { - @Get - @Produces(MediaType.TEXT_PLAIN) + @Get + @Produces(MediaType.TEXT_PLAIN) public String index() { - return "Hello World"; + return "Hello World"; } } diff --git a/native-image/clouds/native-google-cloud-run/src/test/java/example/micronaut/HelloControllerTest.java b/native-image/clouds/native-google-cloud-run/src/test/java/example/micronaut/HelloControllerTest.java index d58c7e43d..771bb9b3a 100644 --- a/native-image/clouds/native-google-cloud-run/src/test/java/example/micronaut/HelloControllerTest.java +++ b/native-image/clouds/native-google-cloud-run/src/test/java/example/micronaut/HelloControllerTest.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package example.micronaut; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -51,16 +17,16 @@ import jakarta.inject.Inject; -@MicronautTest +@MicronautTest public class HelloControllerTest { @Inject - @Client("/") + @Client("/") HttpClient client; @Test public void testHello() { - HttpRequest request = HttpRequest.GET("/hello"); + HttpRequest request = HttpRequest.GET("/hello"); String body = client.toBlocking().retrieve(request); assertNotNull(body); diff --git a/native-image/clouds/native-google-cloud-run/src/test/java/example/micronaut/MicronautguideTest.java b/native-image/clouds/native-google-cloud-run/src/test/java/example/micronaut/MicronautguideTest.java index 1c912e0e7..4edc3c3fd 100644 --- a/native-image/clouds/native-google-cloud-run/src/test/java/example/micronaut/MicronautguideTest.java +++ b/native-image/clouds/native-google-cloud-run/src/test/java/example/micronaut/MicronautguideTest.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package example.micronaut; diff --git a/native-image/clouds/native-oci-cloud-shell/src/main/java/com/gvm/samples/App.java b/native-image/clouds/native-oci-cloud-shell/src/main/java/com/gvm/samples/App.java index 4b253cfd8..22d84f114 100644 --- a/native-image/clouds/native-oci-cloud-shell/src/main/java/com/gvm/samples/App.java +++ b/native-image/clouds/native-oci-cloud-shell/src/main/java/com/gvm/samples/App.java @@ -1,50 +1,16 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package com.gvm.samples; /** * Hello world! * */ -public class App +public class App { public static void main( String[] args ) { diff --git a/native-image/clouds/native-oci-cloud-shell/src/test/java/com/gvm/samples/AppTest.java b/native-image/clouds/native-oci-cloud-shell/src/test/java/com/gvm/samples/AppTest.java index 082137381..59ed8600d 100644 --- a/native-image/clouds/native-oci-cloud-shell/src/test/java/com/gvm/samples/AppTest.java +++ b/native-image/clouds/native-oci-cloud-shell/src/test/java/com/gvm/samples/AppTest.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package com.gvm.samples; import static org.junit.Assert.assertTrue; @@ -47,7 +13,7 @@ /** * Unit test for simple App. */ -public class AppTest +public class AppTest { /** * Rigorous Test :-) diff --git a/native-image/clouds/native-oci-container-instances/pom.xml b/native-image/clouds/native-oci-container-instances/pom.xml index 649974338..3ba870230 100644 --- a/native-image/clouds/native-oci-container-instances/pom.xml +++ b/native-image/clouds/native-oci-container-instances/pom.xml @@ -78,7 +78,7 @@ io.micronaut.build micronaut-maven-plugin - + org.apache.maven.plugins maven-compiler-plugin diff --git a/native-image/clouds/native-oci-container-instances/src/main/java/example/micronaut/Application.java b/native-image/clouds/native-oci-container-instances/src/main/java/example/micronaut/Application.java index 8e1ed254a..06bbe2966 100644 --- a/native-image/clouds/native-oci-container-instances/src/main/java/example/micronaut/Application.java +++ b/native-image/clouds/native-oci-container-instances/src/main/java/example/micronaut/Application.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package example.micronaut; diff --git a/native-image/clouds/native-oci-container-instances/src/main/java/example/micronaut/HelloController.java b/native-image/clouds/native-oci-container-instances/src/main/java/example/micronaut/HelloController.java index 809170546..c197abf1c 100644 --- a/native-image/clouds/native-oci-container-instances/src/main/java/example/micronaut/HelloController.java +++ b/native-image/clouds/native-oci-container-instances/src/main/java/example/micronaut/HelloController.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package example.micronaut; @@ -46,11 +11,11 @@ import io.micronaut.http.annotation.Get; import io.micronaut.http.annotation.Produces; -@Controller("/hello") +@Controller("/hello") public class HelloController { - @Get - @Produces(MediaType.TEXT_PLAIN) + @Get + @Produces(MediaType.TEXT_PLAIN) public String index() { - return "Hello World"; + return "Hello World"; } } diff --git a/native-image/clouds/native-oci-generative-ai/README.md b/native-image/clouds/native-oci-generative-ai/README.md index 00fd4959d..e069041c4 100644 --- a/native-image/clouds/native-oci-generative-ai/README.md +++ b/native-image/clouds/native-oci-generative-ai/README.md @@ -1,7 +1,7 @@ # OCI Native Generative AI Example This example illustrates how to use the Generative AI service provided by Oracle Cloud Infrastructure (OCI). -It uses a state-of-the-art, customizable large language model to generate text. +It uses a state-of-the-art, customizable large language model to generate text. The [source code](./src/main/java/com/oracle/labs/GenerateTextExample.java) is a self-contained demonstration of using a [`GenerativeAiInferenceClient`](https://docs.oracle.com/iaas/tools/java/latest/com/oracle/bmc/generativeaiinference/GenerativeAiInferenceClient.html) to generate text, based on a prompt. @@ -11,7 +11,7 @@ The [_pom.xml_](pom.xml) file includes necessary dependents (such as the [OCI Ja ## Prerequisites * [GraalVM](https://www.graalvm.org/downloads/). -* You must have access to access to Generative AI resources in your tenancy/compartment. +* You must have access to access to Generative AI resources in your tenancy/compartment. (For more information, see [Getting Access to Generative AI](https://docs.oracle.com/iaas/Content/generative-ai/iam-policies.htm).) ## Preparing Your Code @@ -68,9 +68,9 @@ Great attention to detail, with the ability to spot trends and patterns within d Proficiency in data visualization tools such as Tableau, Power BI, or D3.js, or the ability to learn and master new tools quickly. An understanding of design principles and typography is a plus. -We are looking for someone who is passionate about data and storytelling, and who has the ability to turn data into actionable insights through innovative visualization. If you have the relevant experience and skills, we want to hear from you! +We are looking for someone who is passionate about data and storytelling, and who has the ability to turn data into actionable insights through innovative visualization. If you have the relevant experience and skills, we want to hear from you! -This is a great opportunity to join a dynamic and growing team and make a meaningful impact on our company's data-driven decisions. +This is a great opportunity to join a dynamic and growing team and make a meaningful impact on our company's data-driven decisions. We look forward to receiving your application! , likelihood=null, finishReason=null, tokenLikelihoods=null)], timeCreated=Thu May 09 16:51:49 BST 2024, prompt=null)) ``` diff --git a/native-image/clouds/native-oci-generative-ai/src/main/java/com/oracle/labs/GenerateTextExample.java b/native-image/clouds/native-oci-generative-ai/src/main/java/com/oracle/labs/GenerateTextExample.java index 19e75e450..cdf8e1485 100644 --- a/native-image/clouds/native-oci-generative-ai/src/main/java/com/oracle/labs/GenerateTextExample.java +++ b/native-image/clouds/native-oci-generative-ai/src/main/java/com/oracle/labs/GenerateTextExample.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package com.oracle.labs; import com.oracle.bmc.ClientConfiguration; diff --git a/native-image/configure-with-tracing-agent/ReflectionExample.java b/native-image/configure-with-tracing-agent/ReflectionExample.java index 5f78749ef..607531ac8 100644 --- a/native-image/configure-with-tracing-agent/ReflectionExample.java +++ b/native-image/configure-with-tracing-agent/ReflectionExample.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + import java.lang.reflect.Method; class StringReverser { diff --git a/native-image/create-heap-dumps/SVMHeapDump.java b/native-image/create-heap-dumps/SVMHeapDump.java index 1b180b3c7..bdd311f95 100644 --- a/native-image/create-heap-dumps/SVMHeapDump.java +++ b/native-image/create-heap-dumps/SVMHeapDump.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ import java.nio.charset.Charset; @@ -105,7 +70,7 @@ class Person { private static Random R = new Random(); private String name; private int age; - + public Person() { byte[] array = new byte[7]; R.nextBytes(array); diff --git a/native-image/create-heap-dumps/SVMHeapDumpAPI.java b/native-image/create-heap-dumps/SVMHeapDumpAPI.java index 2c42fc02d..3b8f71460 100644 --- a/native-image/create-heap-dumps/SVMHeapDumpAPI.java +++ b/native-image/create-heap-dumps/SVMHeapDumpAPI.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ import java.io.File; @@ -56,7 +21,7 @@ public class SVMHeapDumpAPI { /** * @param args the command line arguments */ - public static void main(String[] args) { + public static void main(String[] args) { // Populate the crowd for (int i = 0; i < 1000; i++) { CROWD.add(new Person()); @@ -97,7 +62,7 @@ class Person { private static Random R = new Random(); private String name; private int age; - + public Person() { byte[] array = new byte[7]; R.nextBytes(array); diff --git a/native-image/embed-sbom/sbom-test/src/main/java/com/sbom/SBOMTestApplication.java b/native-image/embed-sbom/sbom-test/src/main/java/com/sbom/SBOMTestApplication.java index 8d2deb623..5fd15c317 100644 --- a/native-image/embed-sbom/sbom-test/src/main/java/com/sbom/SBOMTestApplication.java +++ b/native-image/embed-sbom/sbom-test/src/main/java/com/sbom/SBOMTestApplication.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package com.sbom; diff --git a/native-image/emit-build-report/1-original/IthWord.java b/native-image/emit-build-report/1-original/IthWord.java index da59fba6b..0e196de44 100644 --- a/native-image/emit-build-report/1-original/IthWord.java +++ b/native-image/emit-build-report/1-original/IthWord.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ public class IthWord { diff --git a/native-image/emit-build-report/2-optimized/IthWord.java b/native-image/emit-build-report/2-optimized/IthWord.java index 9df1a7dbb..c0f703786 100644 --- a/native-image/emit-build-report/2-optimized/IthWord.java +++ b/native-image/emit-build-report/2-optimized/IthWord.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ public class IthWord { diff --git a/native-image/emit-build-report/3-optimized/IthWord.java b/native-image/emit-build-report/3-optimized/IthWord.java index feb82aed6..5cd25aca1 100644 --- a/native-image/emit-build-report/3-optimized/IthWord.java +++ b/native-image/emit-build-report/3-optimized/IthWord.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ public class IthWord { diff --git a/native-image/hello-world/src/com/example/HelloWorld.java b/native-image/hello-world/src/com/example/HelloWorld.java index b42625658..c25bcf376 100644 --- a/native-image/hello-world/src/com/example/HelloWorld.java +++ b/native-image/hello-world/src/com/example/HelloWorld.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package com.example; public class HelloWorld { diff --git a/native-image/include-metadata/src/main/java/org/graalvm/example/H2Example.java b/native-image/include-metadata/src/main/java/org/graalvm/example/H2Example.java index 1f20cd9cd..eb4c1a403 100644 --- a/native-image/include-metadata/src/main/java/org/graalvm/example/H2Example.java +++ b/native-image/include-metadata/src/main/java/org/graalvm/example/H2Example.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package org.graalvm.example; diff --git a/native-image/include-resources/Fortune.java b/native-image/include-resources/Fortune.java index 929354fc5..858feb89a 100644 --- a/native-image/include-resources/Fortune.java +++ b/native-image/include-resources/Fortune.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ import java.io.BufferedReader; @@ -59,16 +24,16 @@ public Fortune(String path) { fortunes.add(s.next()); } } - + private void printRandomFortune() throws InterruptedException { int r = RANDOM.nextInt(fortunes.size()); // Pick a random number String f = fortunes.get(r); // Use the random number to pick a random fortune for (char c: f.toCharArray()) { // Print out the fortune System.out.print(c); - Thread.sleep(100); + Thread.sleep(100); } } - + public static void main(String[] args) throws InterruptedException { Fortune fortune = new Fortune("/fortunes.u8"); fortune.printRandomFortune(); diff --git a/native-image/list-files/ListDir.java b/native-image/list-files/ListDir.java index a839a5968..107427d43 100644 --- a/native-image/list-files/ListDir.java +++ b/native-image/list-files/ListDir.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2014, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ import java.io.File; @@ -64,7 +29,7 @@ public static void main(String[] args) throws java.io.IOException { count[0] += 1; }); } - + System.out.println("Total: " + count[0] + " files, total size = " + size[0] + " bytes"); } } \ No newline at end of file diff --git a/native-image/list-files/README.md b/native-image/list-files/README.md index 80badfce2..5af84de27 100644 --- a/native-image/list-files/README.md +++ b/native-image/list-files/README.md @@ -10,7 +10,7 @@ It uses the Java application that counts files and their sizes in a specified di javac ListDir.java ``` -2. Generate a native executable from the class file: +2. Generate a native executable from the class file: ```bash native-image ListDir ``` @@ -39,7 +39,7 @@ With PGO you can collect the profiling data, and then feed it to the `native-ima ```bash ./listdir-instrumented .. ``` - Profiles collected from this run are now stored in the `default.iprof` file. + Profiles collected from this run are now stored in the `default.iprof` file. 2. Use the profiles to build an optimized native executable, giving it a different name than in the previous runs: ```shell diff --git a/native-image/microservices/micronaut-hello-rest-gradle/src/main/java/com/example/Application.java b/native-image/microservices/micronaut-hello-rest-gradle/src/main/java/com/example/Application.java index 1ad9baa02..f3b744ca6 100644 --- a/native-image/microservices/micronaut-hello-rest-gradle/src/main/java/com/example/Application.java +++ b/native-image/microservices/micronaut-hello-rest-gradle/src/main/java/com/example/Application.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package com.example; diff --git a/native-image/microservices/micronaut-hello-rest-gradle/src/main/java/com/example/HelloController.java b/native-image/microservices/micronaut-hello-rest-gradle/src/main/java/com/example/HelloController.java index 2f3fd58c0..e94915ffe 100644 --- a/native-image/microservices/micronaut-hello-rest-gradle/src/main/java/com/example/HelloController.java +++ b/native-image/microservices/micronaut-hello-rest-gradle/src/main/java/com/example/HelloController.java @@ -1,43 +1,7 @@ - /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package com.example; diff --git a/native-image/microservices/micronaut-hello-rest-gradle/src/test/java/hello/HelloControllerTest.java b/native-image/microservices/micronaut-hello-rest-gradle/src/test/java/hello/HelloControllerTest.java index 5c1aac7b5..dca9d865b 100644 --- a/native-image/microservices/micronaut-hello-rest-gradle/src/test/java/hello/HelloControllerTest.java +++ b/native-image/microservices/micronaut-hello-rest-gradle/src/test/java/hello/HelloControllerTest.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. + * + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. + */ + package hello; import io.micronaut.http.HttpStatus; import io.micronaut.http.client.HttpClient; diff --git a/native-image/microservices/micronaut-hello-rest-gradle/src/test/java/hello/HelloTest.java b/native-image/microservices/micronaut-hello-rest-gradle/src/test/java/hello/HelloTest.java index 97afce4e9..cbe6391d9 100644 --- a/native-image/microservices/micronaut-hello-rest-gradle/src/test/java/hello/HelloTest.java +++ b/native-image/microservices/micronaut-hello-rest-gradle/src/test/java/hello/HelloTest.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. + * + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. + */ + package hello; import io.micronaut.runtime.EmbeddedApplication; diff --git a/native-image/microservices/micronaut-hello-rest-maven/src/main/java/com/example/Application.java b/native-image/microservices/micronaut-hello-rest-maven/src/main/java/com/example/Application.java index 1ad9baa02..f3b744ca6 100644 --- a/native-image/microservices/micronaut-hello-rest-maven/src/main/java/com/example/Application.java +++ b/native-image/microservices/micronaut-hello-rest-maven/src/main/java/com/example/Application.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package com.example; diff --git a/native-image/microservices/micronaut-hello-rest-maven/src/main/java/com/example/HelloController.java b/native-image/microservices/micronaut-hello-rest-maven/src/main/java/com/example/HelloController.java index ef6244e19..4a0a0f052 100644 --- a/native-image/microservices/micronaut-hello-rest-maven/src/main/java/com/example/HelloController.java +++ b/native-image/microservices/micronaut-hello-rest-maven/src/main/java/com/example/HelloController.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package com.example; import io.micronaut.http.MediaType; diff --git a/native-image/microservices/micronaut-hello-rest-maven/src/test/java/com/example/HelloControllerTest.java b/native-image/microservices/micronaut-hello-rest-maven/src/test/java/com/example/HelloControllerTest.java index 61f8ee55f..ba0bf7b9b 100644 --- a/native-image/microservices/micronaut-hello-rest-maven/src/test/java/com/example/HelloControllerTest.java +++ b/native-image/microservices/micronaut-hello-rest-maven/src/test/java/com/example/HelloControllerTest.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package com.example; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -50,16 +16,16 @@ import io.micronaut.test.extensions.junit5.annotation.MicronautTest; import jakarta.inject.Inject; -@MicronautTest +@MicronautTest public class HelloControllerTest { @Inject - @Client("/") + @Client("/") HttpClient client; @Test public void testHello() { - HttpRequest request = HttpRequest.GET("/"); + HttpRequest request = HttpRequest.GET("/"); String body = client.toBlocking().retrieve(request); assertNotNull(body); @@ -67,7 +33,7 @@ public void testHello() { } @Test public void testHelloName() { - HttpRequest request = HttpRequest.GET("/Pluto"); + HttpRequest request = HttpRequest.GET("/Pluto"); String body = client.toBlocking().retrieve(request); assertNotNull(body); diff --git a/native-image/microservices/micronaut-hello-rest-maven/src/test/java/com/example/MnHelloRestTest.java b/native-image/microservices/micronaut-hello-rest-maven/src/test/java/com/example/MnHelloRestTest.java index 2cc1d9687..4047b177c 100644 --- a/native-image/microservices/micronaut-hello-rest-maven/src/test/java/com/example/MnHelloRestTest.java +++ b/native-image/microservices/micronaut-hello-rest-maven/src/test/java/com/example/MnHelloRestTest.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package com.example; import io.micronaut.runtime.EmbeddedApplication; diff --git a/native-image/native-build-tools/gradle-plugin/src/main/java/demo/Fortune.java b/native-image/native-build-tools/gradle-plugin/src/main/java/demo/Fortune.java index 5ecabfbf2..73caa0880 100644 --- a/native-image/native-build-tools/gradle-plugin/src/main/java/demo/Fortune.java +++ b/native-image/native-build-tools/gradle-plugin/src/main/java/demo/Fortune.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package demo; @@ -61,16 +26,16 @@ public Fortune(String path) { fortunes.add(s.next()); } } - + private void printRandomFortune() throws InterruptedException { int r = RANDOM.nextInt(fortunes.size()); //Pick a random number String f = fortunes.get(r); //Use the random number to pick a random fortune for (char c: f.toCharArray()) { // Print out the fortune System.out.print(c); - Thread.sleep(100); + Thread.sleep(100); } } - + public static void main(String[] args) throws InterruptedException { Fortune fortune = new Fortune("/fortunes.u8"); fortune.printRandomFortune(); diff --git a/native-image/native-build-tools/maven-plugin/src/main/java/demo/Fortune.java b/native-image/native-build-tools/maven-plugin/src/main/java/demo/Fortune.java index 5ecabfbf2..73caa0880 100644 --- a/native-image/native-build-tools/maven-plugin/src/main/java/demo/Fortune.java +++ b/native-image/native-build-tools/maven-plugin/src/main/java/demo/Fortune.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package demo; @@ -61,16 +26,16 @@ public Fortune(String path) { fortunes.add(s.next()); } } - + private void printRandomFortune() throws InterruptedException { int r = RANDOM.nextInt(fortunes.size()); //Pick a random number String f = fortunes.get(r); //Use the random number to pick a random fortune for (char c: f.toCharArray()) { // Print out the fortune System.out.print(c); - Thread.sleep(100); + Thread.sleep(100); } } - + public static void main(String[] args) throws InterruptedException { Fortune fortune = new Fortune("/fortunes.u8"); fortune.printRandomFortune(); diff --git a/native-image/optimize-memory/StringManipulation.java b/native-image/optimize-memory/StringManipulation.java index e5562f0f6..0584e7345 100644 --- a/native-image/optimize-memory/StringManipulation.java +++ b/native-image/optimize-memory/StringManipulation.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + import java.util.ArrayDeque; public class StringManipulation { diff --git a/native-image/optimize-with-pgo/Streams.java b/native-image/optimize-with-pgo/Streams.java index e2ec4f431..19246f195 100644 --- a/native-image/optimize-with-pgo/Streams.java +++ b/native-image/optimize-with-pgo/Streams.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ import java.util.Arrays; diff --git a/native-image/preserve-package/src/main/java/org/graalvm/example/ReflectionExample.java b/native-image/preserve-package/src/main/java/org/graalvm/example/ReflectionExample.java index b838aa040..c62bdf62d 100644 --- a/native-image/preserve-package/src/main/java/org/graalvm/example/ReflectionExample.java +++ b/native-image/preserve-package/src/main/java/org/graalvm/example/ReflectionExample.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + package org.graalvm.example; import java.lang.reflect.Method; diff --git a/native-image/preserve-package/src/main/java/org/graalvm/example/action/StringCapitalizer.java b/native-image/preserve-package/src/main/java/org/graalvm/example/action/StringCapitalizer.java index c917ad600..12ca373f6 100644 --- a/native-image/preserve-package/src/main/java/org/graalvm/example/action/StringCapitalizer.java +++ b/native-image/preserve-package/src/main/java/org/graalvm/example/action/StringCapitalizer.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package org.graalvm.example.action; diff --git a/native-image/preserve-package/src/main/java/org/graalvm/example/action/StringReverser.java b/native-image/preserve-package/src/main/java/org/graalvm/example/action/StringReverser.java index dca39e87a..e91e81f64 100644 --- a/native-image/preserve-package/src/main/java/org/graalvm/example/action/StringReverser.java +++ b/native-image/preserve-package/src/main/java/org/graalvm/example/action/StringReverser.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package org.graalvm.example.action; diff --git a/native-image/specify-class-init/TalkParser.java b/native-image/specify-class-init/TalkParser.java index c9a7e726a..8eb88820d 100644 --- a/native-image/specify-class-init/TalkParser.java +++ b/native-image/specify-class-init/TalkParser.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ import java.util.ArrayList; diff --git a/native-image/spring-boot-microservice-jibber/src/main/java/com/example/benchmarks/jibber/DemoApplication.java b/native-image/spring-boot-microservice-jibber/src/main/java/com/example/benchmarks/jibber/DemoApplication.java index c3a4f9bbd..afb827b7e 100644 --- a/native-image/spring-boot-microservice-jibber/src/main/java/com/example/benchmarks/jibber/DemoApplication.java +++ b/native-image/spring-boot-microservice-jibber/src/main/java/com/example/benchmarks/jibber/DemoApplication.java @@ -1,6 +1,7 @@ /* - * Copyright © 2023, Oracle and/or its affiliates. - * Released under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl/. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. + * + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package com.example.benchmarks.jibber; diff --git a/native-image/spring-boot-microservice-jibber/src/main/java/com/example/benchmarks/jibber/Jabberwocky.java b/native-image/spring-boot-microservice-jibber/src/main/java/com/example/benchmarks/jibber/Jabberwocky.java index 78ee0eaaa..46cd20be4 100644 --- a/native-image/spring-boot-microservice-jibber/src/main/java/com/example/benchmarks/jibber/Jabberwocky.java +++ b/native-image/spring-boot-microservice-jibber/src/main/java/com/example/benchmarks/jibber/Jabberwocky.java @@ -1,6 +1,7 @@ /* - * Copyright © 2023, Oracle and/or its affiliates. - * Released under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl/. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. + * + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ package com.example.benchmarks.jibber; diff --git a/native-image/tiny-java-containers/helloworld/Hello.java b/native-image/tiny-java-containers/helloworld/Hello.java index ae61f2726..ca78d4581 100644 --- a/native-image/tiny-java-containers/helloworld/Hello.java +++ b/native-image/tiny-java-containers/helloworld/Hello.java @@ -1,42 +1,7 @@ /* - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2023, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ public class Hello { diff --git a/native-image/use-system-properties/README.md b/native-image/use-system-properties/README.md index 7a638f303..2fe1b1c01 100644 --- a/native-image/use-system-properties/README.md +++ b/native-image/use-system-properties/README.md @@ -20,7 +20,7 @@ If, on the other hand, you run the executable with `app -Dfoo=bar`, it will disp You can read system properties at build time and incorporate them into the native executable, as shown in the following example. -### Prerequisite +### Prerequisite Make sure you have installed a GraalVM JDK. The easiest way to get started is with [SDKMAN!](https://sdkman.io/jdks#graal). @@ -45,21 +45,21 @@ For other installation options, visit the [Downloads section](https://www.graalv System.out.println("Getting value of static property with key: " + STATIC_PROPERTY_KEY); STATIC_PROPERTY = System.getProperty(STATIC_PROPERTY_KEY); } - + public ReadProperties() { System.out.println("Getting value of instance property with key: " + INSTANCE_PROPERTY_KEY); instanceProperty = System.getProperty(INSTANCE_PROPERTY_KEY); } - + public void print() { System.out.println("Value of instance property: " + instanceProperty); - } - + } + public static void main(String[] args) { System.out.println("Value of static property: " + STATIC_PROPERTY); ReadProperties rp = new ReadProperties(); rp.print(); - } + } } ``` diff --git a/native-image/use-system-properties/ReadProperties.java b/native-image/use-system-properties/ReadProperties.java index 20fa09a01..03c560460 100644 --- a/native-image/use-system-properties/ReadProperties.java +++ b/native-image/use-system-properties/ReadProperties.java @@ -1,43 +1,9 @@ /* - * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * Copyright (c) 2024, 2025, Oracle and/or its affiliates. * - * The Universal Permissive License (UPL), Version 1.0 - * - * Subject to the condition set forth below, permission is hereby granted to any - * person obtaining a copy of this software, associated documentation and/or - * data (collectively the "Software"), free of charge and under any and all - * copyright rights in the Software, and any and all patent rights owned or - * freely licensable by each licensor hereunder covering either (i) the - * unmodified Software as contributed to or provided by such licensor, or (ii) - * the Larger Works (as defined below), to deal in both - * - * (a) the Software, and - * - * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if - * one is included with the Software each a "Larger Work" to which the Software - * is contributed by such licensors), - * - * without restriction, including without limitation the rights to copy, create - * derivative works of, display, perform, and distribute the Software and make, - * use, sell, offer for sale, import, export, have made, and have sold the - * Software and the Larger Work(s), and to sublicense the foregoing rights on - * either these or other terms. - * - * This license is subject to the following condition: - * - * The above copyright notice and either this complete permission notice or at a - * minimum a reference to the UPL must be included in all copies or substantial - * portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.org/license/UPL. */ + public class ReadProperties { private static final String STATIC_PROPERTY_KEY = "static_key"; private static final String INSTANCE_PROPERTY_KEY = "instance_key"; @@ -52,14 +18,14 @@ public ReadProperties() { System.out.println("Getting value of instance property with key: " + INSTANCE_PROPERTY_KEY); instanceProperty = System.getProperty(INSTANCE_PROPERTY_KEY); } - + public void print() { System.out.println("Value of instance property: " + instanceProperty); - } - + } + public static void main(String[] args) { System.out.println("Value of static property: " + STATIC_PROPERTY); ReadProperties rp = new ReadProperties(); rp.print(); - } + } } \ No newline at end of file