From 8762a02844d4eec01c4f253351f83964c5345cbf Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Thu, 27 Feb 2014 23:17:25 +0400 Subject: [PATCH] Add/update copyrights in built-ins sources --- core/builtins/native/kotlin/Annotation.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/Any.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/Array.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/Boolean.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/Char.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/CharSequence.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/Collections.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/Comparable.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/Enum.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/Iterator.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/Library.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/Nothing.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/Numbers.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/String.kt | 16 ++++++++++++++++ core/builtins/native/kotlin/Throwable.kt | 16 ++++++++++++++++ .../src/kotlin/NoWhenBranchMatchedException.java | 2 +- .../src/kotlin/TypeCastException.java | 2 +- .../kotlin/jvm/internal/CollectionToArray.java | 16 ++++++++++++++++ .../src/kotlin/jvm/internal/KObject.java | 2 +- .../src/kotlin/jvm/internal/KotlinClass.java | 2 +- .../src/kotlin/jvm/internal/KotlinPackage.java | 2 +- .../kotlin/jvm/internal/KotlinPackagePart.java | 2 +- .../src/kotlin/jvm/internal/KotlinTraitImpl.java | 2 +- .../runtime.jvm/src/kotlin/jvm/internal/Ref.java | 2 +- 24 files changed, 264 insertions(+), 8 deletions(-) diff --git a/core/builtins/native/kotlin/Annotation.kt b/core/builtins/native/kotlin/Annotation.kt index 51ddbaa2c50..ea819e47fa2 100644 --- a/core/builtins/native/kotlin/Annotation.kt +++ b/core/builtins/native/kotlin/Annotation.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public trait Annotation diff --git a/core/builtins/native/kotlin/Any.kt b/core/builtins/native/kotlin/Any.kt index 2317e9e99c7..a20a6853015 100644 --- a/core/builtins/native/kotlin/Any.kt +++ b/core/builtins/native/kotlin/Any.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public open class Any { diff --git a/core/builtins/native/kotlin/Array.kt b/core/builtins/native/kotlin/Array.kt index a95293629f4..9528c8bdd0a 100644 --- a/core/builtins/native/kotlin/Array.kt +++ b/core/builtins/native/kotlin/Array.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public class Array(public val size: Int, init: Function1) { diff --git a/core/builtins/native/kotlin/Boolean.kt b/core/builtins/native/kotlin/Boolean.kt index 3fb93f85bfa..cdded99ca73 100644 --- a/core/builtins/native/kotlin/Boolean.kt +++ b/core/builtins/native/kotlin/Boolean.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public class Boolean private () : Comparable { diff --git a/core/builtins/native/kotlin/Char.kt b/core/builtins/native/kotlin/Char.kt index 88d8c5dc4c0..830a76ab147 100644 --- a/core/builtins/native/kotlin/Char.kt +++ b/core/builtins/native/kotlin/Char.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public class Char private () : Comparable { diff --git a/core/builtins/native/kotlin/CharSequence.kt b/core/builtins/native/kotlin/CharSequence.kt index fb074e27049..dc6e6e85b51 100644 --- a/core/builtins/native/kotlin/CharSequence.kt +++ b/core/builtins/native/kotlin/CharSequence.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public trait CharSequence { diff --git a/core/builtins/native/kotlin/Collections.kt b/core/builtins/native/kotlin/Collections.kt index 0c07f020d0c..3b904470ea1 100644 --- a/core/builtins/native/kotlin/Collections.kt +++ b/core/builtins/native/kotlin/Collections.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public trait Iterable { diff --git a/core/builtins/native/kotlin/Comparable.kt b/core/builtins/native/kotlin/Comparable.kt index 8c8229700ee..53e42f3217a 100644 --- a/core/builtins/native/kotlin/Comparable.kt +++ b/core/builtins/native/kotlin/Comparable.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public trait Comparable { diff --git a/core/builtins/native/kotlin/Enum.kt b/core/builtins/native/kotlin/Enum.kt index ed6996e969e..20b64ed85b9 100644 --- a/core/builtins/native/kotlin/Enum.kt +++ b/core/builtins/native/kotlin/Enum.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public abstract class Enum>(name: String, ordinal: Int) { diff --git a/core/builtins/native/kotlin/Iterator.kt b/core/builtins/native/kotlin/Iterator.kt index ae722292e91..e1e98e04be1 100644 --- a/core/builtins/native/kotlin/Iterator.kt +++ b/core/builtins/native/kotlin/Iterator.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public trait Iterator { diff --git a/core/builtins/native/kotlin/Library.kt b/core/builtins/native/kotlin/Library.kt index c1363bde888..8aa6d38605f 100644 --- a/core/builtins/native/kotlin/Library.kt +++ b/core/builtins/native/kotlin/Library.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public fun Any?.identityEquals(other: Any?): Boolean // = this === other diff --git a/core/builtins/native/kotlin/Nothing.kt b/core/builtins/native/kotlin/Nothing.kt index 21f4a935217..44b9a82d999 100644 --- a/core/builtins/native/kotlin/Nothing.kt +++ b/core/builtins/native/kotlin/Nothing.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin /** diff --git a/core/builtins/native/kotlin/Numbers.kt b/core/builtins/native/kotlin/Numbers.kt index 123c693d3dc..2903286677e 100644 --- a/core/builtins/native/kotlin/Numbers.kt +++ b/core/builtins/native/kotlin/Numbers.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public abstract class Number { diff --git a/core/builtins/native/kotlin/String.kt b/core/builtins/native/kotlin/String.kt index 5400cd8e634..fa6d54e21ca 100644 --- a/core/builtins/native/kotlin/String.kt +++ b/core/builtins/native/kotlin/String.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public class String : Comparable, CharSequence { diff --git a/core/builtins/native/kotlin/Throwable.kt b/core/builtins/native/kotlin/Throwable.kt index b6d5d744e21..e186f147b23 100644 --- a/core/builtins/native/kotlin/Throwable.kt +++ b/core/builtins/native/kotlin/Throwable.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin public open class Throwable(message: String? = null, cause: Throwable? = null) { diff --git a/core/runtime.jvm/src/kotlin/NoWhenBranchMatchedException.java b/core/runtime.jvm/src/kotlin/NoWhenBranchMatchedException.java index 5f4167fae52..17292b9a65c 100644 --- a/core/runtime.jvm/src/kotlin/NoWhenBranchMatchedException.java +++ b/core/runtime.jvm/src/kotlin/NoWhenBranchMatchedException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2013 JetBrains s.r.o. + * Copyright 2010-2014 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. diff --git a/core/runtime.jvm/src/kotlin/TypeCastException.java b/core/runtime.jvm/src/kotlin/TypeCastException.java index 05ffd1bfe64..061b464c625 100644 --- a/core/runtime.jvm/src/kotlin/TypeCastException.java +++ b/core/runtime.jvm/src/kotlin/TypeCastException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2013 JetBrains s.r.o. + * Copyright 2010-2014 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. diff --git a/core/runtime.jvm/src/kotlin/jvm/internal/CollectionToArray.java b/core/runtime.jvm/src/kotlin/jvm/internal/CollectionToArray.java index ca818a80ea9..4397b50e9b4 100644 --- a/core/runtime.jvm/src/kotlin/jvm/internal/CollectionToArray.java +++ b/core/runtime.jvm/src/kotlin/jvm/internal/CollectionToArray.java @@ -1,3 +1,19 @@ +/* + * Copyright 2010-2014 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 kotlin.jvm.internal; import java.util.Arrays; diff --git a/core/runtime.jvm/src/kotlin/jvm/internal/KObject.java b/core/runtime.jvm/src/kotlin/jvm/internal/KObject.java index e59d02e617a..866039f0636 100644 --- a/core/runtime.jvm/src/kotlin/jvm/internal/KObject.java +++ b/core/runtime.jvm/src/kotlin/jvm/internal/KObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2013 JetBrains s.r.o. + * Copyright 2010-2014 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. diff --git a/core/runtime.jvm/src/kotlin/jvm/internal/KotlinClass.java b/core/runtime.jvm/src/kotlin/jvm/internal/KotlinClass.java index 2b954c18448..7889849657b 100644 --- a/core/runtime.jvm/src/kotlin/jvm/internal/KotlinClass.java +++ b/core/runtime.jvm/src/kotlin/jvm/internal/KotlinClass.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2013 JetBrains s.r.o. + * Copyright 2010-2014 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. diff --git a/core/runtime.jvm/src/kotlin/jvm/internal/KotlinPackage.java b/core/runtime.jvm/src/kotlin/jvm/internal/KotlinPackage.java index ff785e28ee5..d1c5d473237 100644 --- a/core/runtime.jvm/src/kotlin/jvm/internal/KotlinPackage.java +++ b/core/runtime.jvm/src/kotlin/jvm/internal/KotlinPackage.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2013 JetBrains s.r.o. + * Copyright 2010-2014 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. diff --git a/core/runtime.jvm/src/kotlin/jvm/internal/KotlinPackagePart.java b/core/runtime.jvm/src/kotlin/jvm/internal/KotlinPackagePart.java index 05b94f33dd4..ad32f39eeac 100644 --- a/core/runtime.jvm/src/kotlin/jvm/internal/KotlinPackagePart.java +++ b/core/runtime.jvm/src/kotlin/jvm/internal/KotlinPackagePart.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2013 JetBrains s.r.o. + * Copyright 2010-2014 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. diff --git a/core/runtime.jvm/src/kotlin/jvm/internal/KotlinTraitImpl.java b/core/runtime.jvm/src/kotlin/jvm/internal/KotlinTraitImpl.java index d90c1ff154c..6675edde146 100644 --- a/core/runtime.jvm/src/kotlin/jvm/internal/KotlinTraitImpl.java +++ b/core/runtime.jvm/src/kotlin/jvm/internal/KotlinTraitImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2013 JetBrains s.r.o. + * Copyright 2010-2014 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. diff --git a/core/runtime.jvm/src/kotlin/jvm/internal/Ref.java b/core/runtime.jvm/src/kotlin/jvm/internal/Ref.java index 970920db091..67328c8952c 100644 --- a/core/runtime.jvm/src/kotlin/jvm/internal/Ref.java +++ b/core/runtime.jvm/src/kotlin/jvm/internal/Ref.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2013 JetBrains s.r.o. + * Copyright 2010-2014 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.