Skip to content

Commit d9e1f7d

Browse files
committed
add copyright to new files
1 parent 1261832 commit d9e1f7d

File tree

9 files changed

+102
-34
lines changed

9 files changed

+102
-34
lines changed

headless-services/commons/commons-rewrite/src/main/java/org/springframework/ide/vscode/commons/rewrite/java/AddFieldRecipe.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2017, 2024 Broadcom, Inc.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* https://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* Broadcom, Inc. - initial API and implementation
10+
*******************************************************************************/
111
package org.springframework.ide.vscode.commons.rewrite.java;
212

313
import org.openrewrite.Cursor;
@@ -16,6 +26,9 @@
1626
import com.fasterxml.jackson.annotation.JsonCreator;
1727
import com.fasterxml.jackson.annotation.JsonProperty;
1828

29+
/**
30+
* @author Udayani V
31+
*/
1932
public class AddFieldRecipe extends Recipe {
2033

2134
@Override

headless-services/commons/commons-rewrite/src/main/java/org/springframework/ide/vscode/commons/rewrite/java/ConstructorInjectionRecipe.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2017, 2024 Broadcom, Inc.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* https://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* Broadcom, Inc. - initial API and implementation
10+
*******************************************************************************/
111
package org.springframework.ide.vscode.commons.rewrite.java;
212

313
import java.util.Collections;
@@ -37,6 +47,9 @@
3747
import com.fasterxml.jackson.annotation.JsonCreator;
3848
import com.fasterxml.jackson.annotation.JsonProperty;
3949

50+
/**
51+
* @author Udayani V
52+
*/
4053
public class ConstructorInjectionRecipe extends Recipe {
4154

4255
@Override

headless-services/commons/commons-rewrite/src/main/java/org/springframework/ide/vscode/commons/rewrite/java/InjectBeanCompletionRecipe.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2017, 2024 Broadcom, Inc.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* https://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* Broadcom, Inc. - initial API and implementation
10+
*******************************************************************************/
111
package org.springframework.ide.vscode.commons.rewrite.java;
212

313
import java.util.ArrayList;
@@ -9,6 +19,9 @@
919
import org.openrewrite.internal.lang.NonNull;
1020
import org.openrewrite.internal.lang.Nullable;
1121

22+
/**
23+
* @author Udayani V
24+
*/
1225
public class InjectBeanCompletionRecipe extends Recipe {
1326

1427
@Override

headless-services/commons/commons-rewrite/src/test/java/org/springframework/ide/vscode/commons/rewrite/java/AddFieldRecipeTest.java

Lines changed: 10 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2017, 2024 Broadcom, Inc.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* https://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* Broadcom, Inc. - initial API and implementation
10+
*******************************************************************************/
111
package org.springframework.ide.vscode.commons.rewrite.java;
212

313
import static org.assertj.core.api.Assertions.assertThat;
@@ -45,40 +55,6 @@ public static void runRecipeAndAssert(Recipe recipe, String beforeSourceStr, Str
4555
assertThat(res.getAfter().printAll()).isEqualTo(expectedSourceStr);
4656
}
4757

48-
// This adds a new field when the LST is valid
49-
// @Test
50-
// void addField() {
51-
// rewriteRun(
52-
// spec -> spec.recipe(new AddFieldRecipe("com.example.test.OwnerRepository", "com.example.demo.FooBar")),
53-
// java(
54-
// """
55-
// package com.example.demo;
56-
//
57-
// import com.example.test.OwnerRepository;
58-
//
59-
// class FooBar {
60-
//
61-
// public void test() {}
62-
//
63-
// }
64-
// """,
65-
// """
66-
// package com.example.demo;
67-
//
68-
// import com.example.test.OwnerRepository;
69-
//
70-
// class FooBar {
71-
//
72-
// private final OwnerRepository ownerRepository;
73-
//
74-
// public void test() {}
75-
//
76-
// }
77-
// """
78-
// )
79-
// );
80-
// }
81-
8258
// The test parses invalid LST and then applies the recipe
8359
@Test
8460
void addField() {

headless-services/commons/commons-rewrite/src/test/java/org/springframework/ide/vscode/commons/rewrite/java/ConstructorInjectionRecipeTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2017, 2024 Broadcom, Inc.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* https://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* Broadcom, Inc. - initial API and implementation
10+
*******************************************************************************/
111
package org.springframework.ide.vscode.commons.rewrite.java;
212

313
import static org.assertj.core.api.Assertions.assertThat;

headless-services/commons/commons-rewrite/src/test/java/org/springframework/ide/vscode/commons/rewrite/java/InjectBeanCompletionRecipeTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2017, 2024 Broadcom, Inc.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* https://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* Broadcom, Inc. - initial API and implementation
10+
*******************************************************************************/
111
package org.springframework.ide.vscode.commons.rewrite.java;
212

313
import static org.assertj.core.api.Assertions.assertThat;

headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/beans/BeanCompletionProposal.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2017, 2024 Broadcom, Inc.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* https://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* Broadcom, Inc. - initial API and implementation
10+
*******************************************************************************/
111
package org.springframework.ide.vscode.boot.java.beans;
212

313
import java.util.List;
@@ -25,6 +35,9 @@
2535
import com.google.gson.JsonDeserializer;
2636
import com.google.gson.JsonElement;
2737

38+
/**
39+
* @author Udayani V
40+
*/
2841
public class BeanCompletionProposal implements ICompletionProposal {
2942

3043
private static final Logger log = LoggerFactory.getLogger(BeanCompletionProposal.class);

headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/beans/BeanCompletionProvider.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2017, 2024 Broadcom, Inc.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* https://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* Broadcom, Inc. - initial API and implementation
10+
*******************************************************************************/
111
package org.springframework.ide.vscode.boot.java.beans;
212

313
import java.util.Collection;

headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/java/beans/test/BeanCompletionProviderTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2017, 2024 Broadcom, Inc.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* https://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* Broadcom, Inc. - initial API and implementation
10+
*******************************************************************************/
111
package org.springframework.ide.vscode.boot.java.beans.test;
212

313
import static org.junit.Assert.assertArrayEquals;

0 commit comments

Comments
 (0)