From 8b0555067222c4a45c21079fc838451f7d6f7ff5 Mon Sep 17 00:00:00 2001 From: Hector Ventura Date: Mon, 26 Oct 2026 05:25:38 -0500 Subject: [PATCH] chore: derive class-name strings in main from the class (#6588) AppSyncVtlEngine registered ReturnDirective with Velocity by a literal class name, and RequestBodyReader keyed its buffered-body request property with one. Both now come from the class, so they follow it when the package moves to io.floci.aws. The values are unchanged today. Signed-off-by: Hector Ventura --- .../floci/services/appsync/graphql/AppSyncVtlEngine.java | 3 +-- .../hectorvent/floci/services/iam/RequestBodyReader.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/github/hectorvent/floci/services/appsync/graphql/AppSyncVtlEngine.java b/src/main/java/io/github/hectorvent/floci/services/appsync/graphql/AppSyncVtlEngine.java index 2b22fce3c8..c2489ac5f9 100644 --- a/src/main/java/io/github/hectorvent/floci/services/appsync/graphql/AppSyncVtlEngine.java +++ b/src/main/java/io/github/hectorvent/floci/services/appsync/graphql/AppSyncVtlEngine.java @@ -64,8 +64,7 @@ public class AppSyncVtlEngine { engine.setProperty("resource.loader.string.class", "org.apache.velocity.runtime.resource.loader.StringResourceLoader"); engine.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT, false); - engine.setProperty("userdirective", - "io.github.hectorvent.floci.services.appsync.graphql.ReturnDirective"); + engine.setProperty("userdirective", ReturnDirective.class.getName()); engine.setProperty(RuntimeConstants.MAX_NUMBER_LOOPS, config.services().appsync().vtlMaxLoops()); VtlSandbox.restrictIntrospection(engine); engine.init(); diff --git a/src/main/java/io/github/hectorvent/floci/services/iam/RequestBodyReader.java b/src/main/java/io/github/hectorvent/floci/services/iam/RequestBodyReader.java index 5bb2a317d6..612f936e1a 100644 --- a/src/main/java/io/github/hectorvent/floci/services/iam/RequestBodyReader.java +++ b/src/main/java/io/github/hectorvent/floci/services/iam/RequestBodyReader.java @@ -18,8 +18,7 @@ public final class RequestBodyReader { private static final Logger LOG = Logger.getLogger(RequestBodyReader.class); private static final ObjectMapper CBOR_MAPPER = new ObjectMapper(new CBORFactory()); - private static final String BUFFERED_BODY_PROPERTY = - "io.github.hectorvent.floci.services.iam.RequestBodyReader.bufferedBody"; + private static final String BUFFERED_BODY_PROPERTY = RequestBodyReader.class.getName() + ".bufferedBody"; private RequestBodyReader() { }