diff --git a/fuzzing-tests/src/main/java/io/micronaut/fuzzing/http/EmbeddedHttp2Target.java b/fuzzing-tests/src/main/java/io/micronaut/fuzzing/http/EmbeddedHttp2Target.java index 6dc4257..fc0e073 100644 --- a/fuzzing-tests/src/main/java/io/micronaut/fuzzing/http/EmbeddedHttp2Target.java +++ b/fuzzing-tests/src/main/java/io/micronaut/fuzzing/http/EmbeddedHttp2Target.java @@ -1,3 +1,18 @@ +/* + * Copyright 2017-2025 original authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package io.micronaut.fuzzing.http; import io.micronaut.fuzzing.FuzzTarget; diff --git a/fuzzing-tests/src/main/java/io/micronaut/fuzzing/http/EmbeddedHttpTarget.java b/fuzzing-tests/src/main/java/io/micronaut/fuzzing/http/EmbeddedHttpTarget.java index 098b591..1c4444c 100644 --- a/fuzzing-tests/src/main/java/io/micronaut/fuzzing/http/EmbeddedHttpTarget.java +++ b/fuzzing-tests/src/main/java/io/micronaut/fuzzing/http/EmbeddedHttpTarget.java @@ -29,6 +29,7 @@ import org.slf4j.LoggerFactory; import java.lang.management.ManagementFactory; +import java.util.Map; @FuzzTarget @HttpDict @@ -69,7 +70,7 @@ public static void fuzzerTearDown() { instance.close(); } - void run(byte[] input) { + final void run(byte[] input) { CustomResourceLeakDetector.setCurrentInput(input); EmbeddedChannel embeddedChannel = nettyHttpServer.buildEmbeddedChannel(false); @@ -99,7 +100,7 @@ void run(byte[] input) { } @Override - public void close() { + public final void close() { //CustomResourceLeakDetector.reportStillOpen(); }