From 08a5fdaaf771bf27059a60e2481855ae37516ab8 Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Thu, 22 Feb 2018 14:43:58 +0300 Subject: [PATCH] [klib] Add copyright into test data --- klib/src/test/testData/Accessors.kt | 16 ++++++++++++++++ klib/src/test/testData/Classes.kt | 16 ++++++++++++++++ klib/src/test/testData/Constructors.kt | 16 ++++++++++++++++ klib/src/test/testData/Enum.kt | 16 ++++++++++++++++ klib/src/test/testData/FunctionModifiers.kt | 16 ++++++++++++++++ klib/src/test/testData/MethodModality.kt | 16 ++++++++++++++++ klib/src/test/testData/Objects.kt | 16 ++++++++++++++++ klib/src/test/testData/TopLevelFunctions.kt | 16 ++++++++++++++++ 8 files changed, 128 insertions(+) diff --git a/klib/src/test/testData/Accessors.kt b/klib/src/test/testData/Accessors.kt index 705e1058ab6..bcbbd1c33e2 100644 --- a/klib/src/test/testData/Accessors.kt +++ b/klib/src/test/testData/Accessors.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2018 JetBrains s.r.o. + * + * 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 + * + * http://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 custom.pkg annotation class A diff --git a/klib/src/test/testData/Classes.kt b/klib/src/test/testData/Classes.kt index e912e979cdb..9471b75ae02 100644 --- a/klib/src/test/testData/Classes.kt +++ b/klib/src/test/testData/Classes.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2018 JetBrains s.r.o. + * + * 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 + * + * http://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. + */ + class A { fun aFun() {} val aVal = 0 diff --git a/klib/src/test/testData/Constructors.kt b/klib/src/test/testData/Constructors.kt index 17bff119793..939f517b697 100644 --- a/klib/src/test/testData/Constructors.kt +++ b/klib/src/test/testData/Constructors.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2018 JetBrains s.r.o. + * + * 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 + * + * http://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. + */ + @file:Suppress("UNUSED_PARAMETER") annotation class A diff --git a/klib/src/test/testData/Enum.kt b/klib/src/test/testData/Enum.kt index e3f89de299d..76b9fbfe7e0 100644 --- a/klib/src/test/testData/Enum.kt +++ b/klib/src/test/testData/Enum.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2018 JetBrains s.r.o. + * + * 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 + * + * http://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. + */ + enum class E(val x: Int = 0) { A, B, diff --git a/klib/src/test/testData/FunctionModifiers.kt b/klib/src/test/testData/FunctionModifiers.kt index 80b83ab2f3b..d6df51571e8 100644 --- a/klib/src/test/testData/FunctionModifiers.kt +++ b/klib/src/test/testData/FunctionModifiers.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2018 JetBrains s.r.o. + * + * 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 + * + * http://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. + */ + class Foo { fun f1() {} infix fun f2(x: Int) {} diff --git a/klib/src/test/testData/MethodModality.kt b/klib/src/test/testData/MethodModality.kt index 01844360ede..72fba5f867d 100644 --- a/klib/src/test/testData/MethodModality.kt +++ b/klib/src/test/testData/MethodModality.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2018 JetBrains s.r.o. + * + * 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 + * + * http://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. + */ + interface Interface { fun interfaceFun() } diff --git a/klib/src/test/testData/Objects.kt b/klib/src/test/testData/Objects.kt index fadcfef93e9..cebde7f171b 100644 --- a/klib/src/test/testData/Objects.kt +++ b/klib/src/test/testData/Objects.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2018 JetBrains s.r.o. + * + * 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 + * + * http://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. + */ + object A { fun a() {} } diff --git a/klib/src/test/testData/TopLevelFunctions.kt b/klib/src/test/testData/TopLevelFunctions.kt index 6bec232a3dd..0f05388ae10 100644 --- a/klib/src/test/testData/TopLevelFunctions.kt +++ b/klib/src/test/testData/TopLevelFunctions.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2018 JetBrains s.r.o. + * + * 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 + * + * http://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. + */ + @file:Suppress("UNUSED_PARAMETER") annotation class A