From 505f312d5438d43300f5ea50c2971d738b3b29cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kraus?= Date: Fri, 24 Mar 2023 12:12:19 +0100 Subject: [PATCH] Add @target(ElementType.METHOD) for annotation @mptest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomáš Kraus --- .../java/io/helidon/tests/integration/jpa/appl/MPTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/integration/jpa/appl/src/main/java/io/helidon/tests/integration/jpa/appl/MPTest.java b/tests/integration/jpa/appl/src/main/java/io/helidon/tests/integration/jpa/appl/MPTest.java index 3ed17f1880b..16cb4c98184 100644 --- a/tests/integration/jpa/appl/src/main/java/io/helidon/tests/integration/jpa/appl/MPTest.java +++ b/tests/integration/jpa/appl/src/main/java/io/helidon/tests/integration/jpa/appl/MPTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Oracle and/or its affiliates. + * Copyright (c) 2020, 2023 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,13 +15,16 @@ */ package io.helidon.tests.integration.jpa.appl; +import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; /** * Test method annotation. * This is security enhancement which restricts methods invoked by Dispatcher only to those with this annotation. */ @Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.METHOD) public @interface MPTest { }