Skip to content

Commit

Permalink
Fix license headers (#4510)
Browse files Browse the repository at this point in the history
  • Loading branch information
osipxd authored Nov 27, 2024
1 parent df6c224 commit f3ac483
Show file tree
Hide file tree
Showing 60 changed files with 227 additions and 122 deletions.
4 changes: 4 additions & 0 deletions buildSrc/src/main/kotlin/test/server/tests/WebSockets.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package test.server.tests

import io.ktor.server.application.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.client.engine

import io.ktor.http.*
Expand Down
8 changes: 4 additions & 4 deletions ktor-client/ktor-client-core/common/test/CookiesTest.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

import io.ktor.client.plugins.cookies.*
import io.ktor.client.request.*
import io.ktor.http.*
import io.ktor.test.dispatcher.*
import kotlin.test.*

/*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

class CookiesTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

import io.ktor.client.*
import io.ktor.client.engine.mock.*
import io.ktor.client.plugins.*
Expand All @@ -8,10 +12,6 @@ import io.ktor.test.dispatcher.*
import io.ktor.util.*
import kotlin.test.*

/*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

class DefaultRequestTest {

@Test
Expand Down
8 changes: 4 additions & 4 deletions ktor-client/ktor-client-core/common/test/FormDslTest.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

import io.ktor.client.request.forms.*
import io.ktor.http.*
import kotlin.test.*

/*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

class FormDslTest {

@Test
Expand Down
8 changes: 4 additions & 4 deletions ktor-client/ktor-client-core/common/test/HttpStatementTest.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

import io.ktor.client.*
import io.ktor.client.request.*
import io.ktor.client.statement.*
import kotlin.test.*

/*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

class HttpStatementTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

import io.ktor.client.request.forms.*
import io.ktor.test.dispatcher.*
import io.ktor.utils.io.*
import io.ktor.utils.io.charsets.*
import io.ktor.utils.io.core.*
import kotlinx.coroutines.*
import kotlinx.io.*
import kotlin.test.*

/*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

class MultiPartFormDataContentTest {

@OptIn(InternalAPI::class)
Expand Down
8 changes: 4 additions & 4 deletions ktor-client/ktor-client-core/common/test/TestEngine.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

import io.ktor.client.engine.*
import io.ktor.client.request.*
import io.ktor.utils.io.*
import kotlinx.coroutines.*
import kotlin.coroutines.*

/*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

internal object TestEngine : HttpClientEngine {
override val dispatcher: CoroutineDispatcher
get() = Dispatchers.Default
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.client.engine

import io.ktor.http.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.client.engine

import io.ktor.http.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.client.engine

import io.ktor.http.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

import io.ktor.client.*
import io.ktor.client.engine.darwin.*
Expand All @@ -12,10 +15,6 @@ import platform.Foundation.NSHTTPCookieStorage.Companion.sharedHTTPCookieStorage
import kotlin.coroutines.*
import kotlin.test.*

/*
* Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

class DarwinLegacyEngineTest {

val testCoroutineContext: CoroutineContext = Dispatchers.Default
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.client.engine.darwin.internal

import io.ktor.client.engine.darwin.*
Expand Down
8 changes: 4 additions & 4 deletions ktor-client/ktor-client-mock/common/test/MockUtilsTest.kt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.client.engine.mock

import io.ktor.http.content.*
import io.ktor.test.dispatcher.*
import io.ktor.utils.io.*
import kotlin.test.*

/*
* Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

class MockUtilsTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

import org.jetbrains.kotlin.gradle.targets.jvm.tasks.*

/*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

description = "Common tests for client content negotiation"

plugins {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.client.tests
Expand All @@ -15,10 +15,6 @@ import io.ktor.utils.io.*
import java.io.*
import kotlin.test.*

/*
* Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

class DefaultTransformJvmTest {

@Test
Expand Down
4 changes: 4 additions & 0 deletions ktor-io/common/src/io/ktor/utils/io/bits/ByteOrder.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.utils.io.bits

/**
Expand Down
5 changes: 4 additions & 1 deletion ktor-io/common/src/io/ktor/utils/io/charsets/Encoding.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.utils.io.charsets

import io.ktor.utils.io.core.*
import io.ktor.utils.io.core.internal.*
import kotlinx.io.*
import kotlinx.io.IOException

public expect abstract class Charset {
public abstract fun newEncoder(): CharsetEncoder
Expand Down
4 changes: 4 additions & 0 deletions ktor-io/common/src/io/ktor/utils/io/core/Buffer.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

@file:Suppress("NOTHING_TO_INLINE")

package io.ktor.utils.io.core
Expand Down
6 changes: 5 additions & 1 deletion ktor-io/common/src/io/ktor/utils/io/core/BufferAppend.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.utils.io.core

import io.ktor.utils.io.IO_DEPRECATION_MESSAGE
import io.ktor.utils.io.*
import kotlinx.io.Buffer
import kotlin.math.*

Expand Down
4 changes: 4 additions & 0 deletions ktor-io/common/src/io/ktor/utils/io/core/Buffers.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.utils.io.core

import kotlinx.io.*
Expand Down
4 changes: 4 additions & 0 deletions ktor-io/common/src/io/ktor/utils/io/core/Builder.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.utils.io.core

import kotlinx.io.*
Expand Down
4 changes: 4 additions & 0 deletions ktor-io/common/src/io/ktor/utils/io/core/ByteOrder.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.utils.io.core

public expect enum class ByteOrder {
Expand Down
4 changes: 4 additions & 0 deletions ktor-io/common/src/io/ktor/utils/io/core/BytePacketBuilder.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

@file:Suppress("RedundantModalityModifier")

package io.ktor.utils.io.core
Expand Down
4 changes: 4 additions & 0 deletions ktor-io/common/src/io/ktor/utils/io/core/ByteReadPacket.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

@file:Suppress("RedundantModalityModifier", "FunctionName")

package io.ktor.utils.io.core
Expand Down
4 changes: 4 additions & 0 deletions ktor-io/common/src/io/ktor/utils/io/core/Copy.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.utils.io.core

import kotlinx.io.*
Expand Down
6 changes: 5 additions & 1 deletion ktor-io/common/src/io/ktor/utils/io/core/Output.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.utils.io.core

import io.ktor.utils.io.IO_DEPRECATION_MESSAGE
import io.ktor.utils.io.*

/**
* This shouldn't be implemented directly. Inherit [Output] instead.
Expand Down
4 changes: 4 additions & 0 deletions ktor-io/common/src/io/ktor/utils/io/core/Packet.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

@file:Suppress("RedundantModalityModifier")

package io.ktor.utils.io.core
Expand Down
4 changes: 4 additions & 0 deletions ktor-io/common/src/io/ktor/utils/io/core/Strings.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.utils.io.core

import io.ktor.utils.io.charsets.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.utils.io.core.internal

import io.ktor.utils.io.*
Expand Down
4 changes: 4 additions & 0 deletions ktor-io/common/src/io/ktor/utils/io/core/internal/Numbers.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.utils.io.core.internal

@PublishedApi
Expand Down
4 changes: 4 additions & 0 deletions ktor-io/common/src/io/ktor/utils/io/pool/Pool.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.utils.io.pool

import kotlinx.atomicfu.*
Expand Down
8 changes: 4 additions & 4 deletions ktor-io/common/test/ByteChannelTest.kt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

import io.ktor.test.dispatcher.*
import io.ktor.utils.io.*
import io.ktor.utils.io.core.*
import kotlinx.coroutines.*
import kotlinx.io.*
import kotlin.test.*

/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

class ByteChannelTest {

@Test
Expand Down
Loading

0 comments on commit f3ac483

Please sign in to comment.