From 0c9b2577dce88d58a679ede625104f6ff0d193b4 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Sat, 5 Oct 2024 23:44:57 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- ...onseStatusExceptionGetRawStatusCodeMethod.java | 15 +++++++++++++++ .../MigrateResponseStatusExceptionTest.java | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/src/main/java/org/openrewrite/java/spring/framework/MigrateResponseStatusExceptionGetRawStatusCodeMethod.java b/src/main/java/org/openrewrite/java/spring/framework/MigrateResponseStatusExceptionGetRawStatusCodeMethod.java index 2a72b350..ded9f7bc 100644 --- a/src/main/java/org/openrewrite/java/spring/framework/MigrateResponseStatusExceptionGetRawStatusCodeMethod.java +++ b/src/main/java/org/openrewrite/java/spring/framework/MigrateResponseStatusExceptionGetRawStatusCodeMethod.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 the original author or 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 org.openrewrite.java.spring.framework; import org.openrewrite.ExecutionContext; diff --git a/src/test/java/org/openrewrite/java/spring/framework/MigrateResponseStatusExceptionTest.java b/src/test/java/org/openrewrite/java/spring/framework/MigrateResponseStatusExceptionTest.java index c4fbdb48..55f9fd52 100644 --- a/src/test/java/org/openrewrite/java/spring/framework/MigrateResponseStatusExceptionTest.java +++ b/src/test/java/org/openrewrite/java/spring/framework/MigrateResponseStatusExceptionTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 the original author or 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 org.openrewrite.java.spring.framework; import org.junit.jupiter.api.Test;