From a8a97f3abe4bec34894051b93a1b573ee2f46bd0 Mon Sep 17 00:00:00 2001 From: Asaf Cohen Date: Tue, 21 Feb 2023 00:47:30 +0200 Subject: [PATCH] fix CI compiler cannot deal with multiline strings --- src/main/java/io/permit/sdk/api/BaseApi.java | 28 ++++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/java/io/permit/sdk/api/BaseApi.java b/src/main/java/io/permit/sdk/api/BaseApi.java index 8906482..3258305 100644 --- a/src/main/java/io/permit/sdk/api/BaseApi.java +++ b/src/main/java/io/permit/sdk/api/BaseApi.java @@ -146,23 +146,23 @@ protected void ensureContext(ApiKeyLevel callLevel) throws PermitContextError, I // verify context matches requested call level if (callLevel == ApiKeyLevel.PROJECT_LEVEL_API_KEY && this.config.getContext().getProject() == null) { - throw new PermitContextError(""" - You're trying to use an SDK method that's specific to a project, - but you haven't set the current project in your client's context yet, - or you are using an organization level API key. - Please set the context to a specific - project using `permit.set_context()` method. - """); + throw new PermitContextError( + "You're trying to use an SDK method that's specific to a project," + + "but you haven't set the current project in your client's context yet," + + "or you are using an organization level API key." + + "Please set the context to a specific" + + "project using `permit.set_context()` method." + ); } if (callLevel == ApiKeyLevel.ENVIRONMENT_LEVEL_API_KEY && this.config.getContext().getEnvironment() == null) { - throw new PermitContextError(""" - You're trying to use an SDK method that's specific to an environment, - but you haven't set the current environment in your client's context yet, - or you are using an organization/project level API key. - Please set the context to a specific - environment using `permit.set_context()` method. - """); + throw new PermitContextError( + "You're trying to use an SDK method that's specific to an environment," + + "but you haven't set the current environment in your client's context yet," + + "or you are using an organization/project level API key." + + "Please set the context to a specific" + + "environment using `permit.set_context()` method." + ); } } }