diff --git a/src/dorkbox/network/Client.kt b/src/dorkbox/network/Client.kt index 96371120..074873cd 100644 --- a/src/dorkbox/network/Client.kt +++ b/src/dorkbox/network/Client.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/Configuration.kt b/src/dorkbox/network/Configuration.kt index acc5409f..21a4368f 100644 --- a/src/dorkbox/network/Configuration.kt +++ b/src/dorkbox/network/Configuration.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/Server.kt b/src/dorkbox/network/Server.kt index 699293fd..60432fd5 100644 --- a/src/dorkbox/network/Server.kt +++ b/src/dorkbox/network/Server.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/handshake/ClientConnectionInfo.kt b/src/dorkbox/network/handshake/ClientConnectionInfo.kt index 001031e8..954ba2bd 100644 --- a/src/dorkbox/network/handshake/ClientConnectionInfo.kt +++ b/src/dorkbox/network/handshake/ClientConnectionInfo.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkbox.network.handshake import org.slf4j.Logger diff --git a/src/dorkbox/network/handshake/ClientHandshake.kt b/src/dorkbox/network/handshake/ClientHandshake.kt index 5a16f34f..fd08f8df 100644 --- a/src/dorkbox/network/handshake/ClientHandshake.kt +++ b/src/dorkbox/network/handshake/ClientHandshake.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkbox.network.handshake import dorkbox.network.Configuration diff --git a/src/dorkbox/network/handshake/HandshakeMessage.kt b/src/dorkbox/network/handshake/HandshakeMessage.kt index 3de55bc6..4865d1b0 100644 --- a/src/dorkbox/network/handshake/HandshakeMessage.kt +++ b/src/dorkbox/network/handshake/HandshakeMessage.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/handshake/ServerHandshake.kt b/src/dorkbox/network/handshake/ServerHandshake.kt index 1dd51e46..5b3809ad 100644 --- a/src/dorkbox/network/handshake/ServerHandshake.kt +++ b/src/dorkbox/network/handshake/ServerHandshake.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkbox.network.handshake import dorkbox.netUtil.IPv4 diff --git a/src/dorkbox/network/handshake/UpgradeType.java b/src/dorkbox/network/handshake/UpgradeType.java index c3dd1bc0..a569f769 100644 --- a/src/dorkbox/network/handshake/UpgradeType.java +++ b/src/dorkbox/network/handshake/UpgradeType.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkbox.network.handshake; public diff --git a/src/dorkbox/network/other/coroutines/SuspendFunctionTrampoline.java b/src/dorkbox/network/other/coroutines/SuspendFunctionTrampoline.java index 4a5b80b4..5dbeca23 100644 --- a/src/dorkbox/network/other/coroutines/SuspendFunctionTrampoline.java +++ b/src/dorkbox/network/other/coroutines/SuspendFunctionTrampoline.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkbox.network.other.coroutines; import org.jetbrains.annotations.NotNull; diff --git a/src/dorkbox/network/rmi/CachedAsmMethod.kt b/src/dorkbox/network/rmi/CachedAsmMethod.kt index 66f2c191..7560101f 100644 --- a/src/dorkbox/network/rmi/CachedAsmMethod.kt +++ b/src/dorkbox/network/rmi/CachedAsmMethod.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/CachedMethod.kt b/src/dorkbox/network/rmi/CachedMethod.kt index ad4a2ebb..b8842743 100644 --- a/src/dorkbox/network/rmi/CachedMethod.kt +++ b/src/dorkbox/network/rmi/CachedMethod.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/RemoteObject.kt b/src/dorkbox/network/rmi/RemoteObject.kt index 66027dc1..e6225293 100644 --- a/src/dorkbox/network/rmi/RemoteObject.kt +++ b/src/dorkbox/network/rmi/RemoteObject.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/RemoteObjectCallback.kt b/src/dorkbox/network/rmi/RemoteObjectCallback.kt index cc1f0c27..cab066bb 100644 --- a/src/dorkbox/network/rmi/RemoteObjectCallback.kt +++ b/src/dorkbox/network/rmi/RemoteObjectCallback.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/Rmi.kt b/src/dorkbox/network/rmi/Rmi.kt index 0ed26ab7..8667e4f4 100644 --- a/src/dorkbox/network/rmi/Rmi.kt +++ b/src/dorkbox/network/rmi/Rmi.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/RmiManagerForConnections.kt b/src/dorkbox/network/rmi/RmiManagerForConnections.kt index 3079fda3..1f7a5b82 100644 --- a/src/dorkbox/network/rmi/RmiManagerForConnections.kt +++ b/src/dorkbox/network/rmi/RmiManagerForConnections.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkbox.network.rmi import dorkbox.network.connection.Connection diff --git a/src/dorkbox/network/rmi/RmiMessageManager.kt b/src/dorkbox/network/rmi/RmiMessageManager.kt index 21baa397..66f6b608 100644 --- a/src/dorkbox/network/rmi/RmiMessageManager.kt +++ b/src/dorkbox/network/rmi/RmiMessageManager.kt @@ -1,9 +1,10 @@ /* - * Copyright 2019 dorkbox, llc. + * Copyright 2020 dorkbox, llc * * 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 diff --git a/src/dorkbox/network/rmi/RmiObjectCache.kt b/src/dorkbox/network/rmi/RmiObjectCache.kt index ac195f69..da6af1ae 100644 --- a/src/dorkbox/network/rmi/RmiObjectCache.kt +++ b/src/dorkbox/network/rmi/RmiObjectCache.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkbox.network.rmi import dorkbox.util.collections.LockFreeIntMap diff --git a/src/dorkbox/network/rmi/RmiResponseManager.kt b/src/dorkbox/network/rmi/RmiResponseManager.kt index da474e1a..8139d9a1 100644 --- a/src/dorkbox/network/rmi/RmiResponseManager.kt +++ b/src/dorkbox/network/rmi/RmiResponseManager.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkbox.network.rmi import dorkbox.network.rmi.messages.MethodResponse diff --git a/src/dorkbox/network/rmi/RmiUtils.kt b/src/dorkbox/network/rmi/RmiUtils.kt index 575d99c0..2264cacf 100644 --- a/src/dorkbox/network/rmi/RmiUtils.kt +++ b/src/dorkbox/network/rmi/RmiUtils.kt @@ -1,9 +1,10 @@ /* - * Copyright 2019 dorkbox, llc. + * Copyright 2020 dorkbox, llc * * 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 diff --git a/src/dorkbox/network/rmi/RmiWaiter.kt b/src/dorkbox/network/rmi/RmiWaiter.kt index 626f42a4..4db04a7b 100644 --- a/src/dorkbox/network/rmi/RmiWaiter.kt +++ b/src/dorkbox/network/rmi/RmiWaiter.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkbox.network.rmi import kotlinx.coroutines.channels.Channel diff --git a/src/dorkbox/network/rmi/TimeoutException.kt b/src/dorkbox/network/rmi/TimeoutException.kt index 90b3eff8..67768ebd 100644 --- a/src/dorkbox/network/rmi/TimeoutException.kt +++ b/src/dorkbox/network/rmi/TimeoutException.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/messages/ConnectionObjectCreateRequest.kt b/src/dorkbox/network/rmi/messages/ConnectionObjectCreateRequest.kt index e33c2007..68052293 100644 --- a/src/dorkbox/network/rmi/messages/ConnectionObjectCreateRequest.kt +++ b/src/dorkbox/network/rmi/messages/ConnectionObjectCreateRequest.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/messages/ConnectionObjectCreateResponse.kt b/src/dorkbox/network/rmi/messages/ConnectionObjectCreateResponse.kt index 0f5f237c..d941ee50 100644 --- a/src/dorkbox/network/rmi/messages/ConnectionObjectCreateResponse.kt +++ b/src/dorkbox/network/rmi/messages/ConnectionObjectCreateResponse.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/messages/ContinuationSerializer.kt b/src/dorkbox/network/rmi/messages/ContinuationSerializer.kt index 24ba9a8d..9131ef6a 100644 --- a/src/dorkbox/network/rmi/messages/ContinuationSerializer.kt +++ b/src/dorkbox/network/rmi/messages/ContinuationSerializer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2016 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/messages/GlobalObjectCreateRequest.kt b/src/dorkbox/network/rmi/messages/GlobalObjectCreateRequest.kt index 9143c03a..0b347c5e 100644 --- a/src/dorkbox/network/rmi/messages/GlobalObjectCreateRequest.kt +++ b/src/dorkbox/network/rmi/messages/GlobalObjectCreateRequest.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/messages/GlobalObjectCreateResponse.kt b/src/dorkbox/network/rmi/messages/GlobalObjectCreateResponse.kt index 0dd2fda1..4902f746 100644 --- a/src/dorkbox/network/rmi/messages/GlobalObjectCreateResponse.kt +++ b/src/dorkbox/network/rmi/messages/GlobalObjectCreateResponse.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/messages/MethodRequest.kt b/src/dorkbox/network/rmi/messages/MethodRequest.kt index 157c49a1..58e85ae5 100644 --- a/src/dorkbox/network/rmi/messages/MethodRequest.kt +++ b/src/dorkbox/network/rmi/messages/MethodRequest.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,25 +12,6 @@ * 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. - * - * Copyright (c) 2008, Nathan Sweet - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following - * conditions are met: - * - * - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - * - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the distribution. - * - Neither the name of Esoteric Software nor the names of its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, - * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package dorkbox.network.rmi.messages @@ -65,7 +46,6 @@ class MethodRequest : RmiMessage { // these are the arguments for executing the method (they are serialized using the info from the cachedMethod field var args: Array? = null - override fun toString(): String { return "MethodRequest(isGlobal=$isGlobal, rmiObjectId=${RmiUtils.unpackLeft(packedId)}, rmiId=${RmiUtils.unpackRight(packedId)}, cachedMethod=$cachedMethod, args=${args?.contentToString()})" } diff --git a/src/dorkbox/network/rmi/messages/MethodRequestSerializer.kt b/src/dorkbox/network/rmi/messages/MethodRequestSerializer.kt index a6ef7fb4..b2b30d05 100644 --- a/src/dorkbox/network/rmi/messages/MethodRequestSerializer.kt +++ b/src/dorkbox/network/rmi/messages/MethodRequestSerializer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/messages/MethodResponse.kt b/src/dorkbox/network/rmi/messages/MethodResponse.kt index 44af7287..66b43210 100644 --- a/src/dorkbox/network/rmi/messages/MethodResponse.kt +++ b/src/dorkbox/network/rmi/messages/MethodResponse.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,25 +12,6 @@ * 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. - * - * Copyright (c) 2008, Nathan Sweet - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following - * conditions are met: - * - * - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - * - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the distribution. - * - Neither the name of Esoteric Software nor the names of its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, - * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package dorkbox.network.rmi.messages diff --git a/src/dorkbox/network/rmi/messages/MethodResponseSerializer.kt b/src/dorkbox/network/rmi/messages/MethodResponseSerializer.kt index bf38b148..3ae02cab 100644 --- a/src/dorkbox/network/rmi/messages/MethodResponseSerializer.kt +++ b/src/dorkbox/network/rmi/messages/MethodResponseSerializer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2016 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/messages/ObjectResponseSerializer.kt b/src/dorkbox/network/rmi/messages/ObjectResponseSerializer.kt index e1e500ca..022936e1 100644 --- a/src/dorkbox/network/rmi/messages/ObjectResponseSerializer.kt +++ b/src/dorkbox/network/rmi/messages/ObjectResponseSerializer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/messages/RmiClientRequestSerializer.kt b/src/dorkbox/network/rmi/messages/RmiClientRequestSerializer.kt index bf88f0e8..d4a4f06b 100644 --- a/src/dorkbox/network/rmi/messages/RmiClientRequestSerializer.kt +++ b/src/dorkbox/network/rmi/messages/RmiClientRequestSerializer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2016 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/rmi/messages/RmiMessage.kt b/src/dorkbox/network/rmi/messages/RmiMessage.kt index d0b1626e..8d746880 100644 --- a/src/dorkbox/network/rmi/messages/RmiMessage.kt +++ b/src/dorkbox/network/rmi/messages/RmiMessage.kt @@ -1,17 +1,17 @@ /* - * Copyright 2018 dorkbox, llc. + * Copyright 2020 dorkbox, llc * - * 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 + * 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 + * 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. + * 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 dorkbox.network.rmi.messages diff --git a/src/dorkbox/network/serialization/AeronInput.java b/src/dorkbox/network/serialization/AeronInput.java index 2a8a15d1..88b074a7 100644 --- a/src/dorkbox/network/serialization/AeronInput.java +++ b/src/dorkbox/network/serialization/AeronInput.java @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/serialization/AeronOutput.java b/src/dorkbox/network/serialization/AeronOutput.java index c1a0d0ac..c156f51a 100644 --- a/src/dorkbox/network/serialization/AeronOutput.java +++ b/src/dorkbox/network/serialization/AeronOutput.java @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/serialization/ClassRegistration.kt b/src/dorkbox/network/serialization/ClassRegistration.kt index 09fb7606..c0837abe 100644 --- a/src/dorkbox/network/serialization/ClassRegistration.kt +++ b/src/dorkbox/network/serialization/ClassRegistration.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/serialization/ClassRegistration0.kt b/src/dorkbox/network/serialization/ClassRegistration0.kt index b939788a..bc4acd0a 100644 --- a/src/dorkbox/network/serialization/ClassRegistration0.kt +++ b/src/dorkbox/network/serialization/ClassRegistration0.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/serialization/ClassRegistration1.kt b/src/dorkbox/network/serialization/ClassRegistration1.kt index 8dabfb61..686ac44f 100644 --- a/src/dorkbox/network/serialization/ClassRegistration1.kt +++ b/src/dorkbox/network/serialization/ClassRegistration1.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/serialization/ClassRegistration2.kt b/src/dorkbox/network/serialization/ClassRegistration2.kt index d26a623c..19555f57 100644 --- a/src/dorkbox/network/serialization/ClassRegistration2.kt +++ b/src/dorkbox/network/serialization/ClassRegistration2.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/serialization/ClassRegistrationIfaceAndImpl.kt b/src/dorkbox/network/serialization/ClassRegistrationIfaceAndImpl.kt index d79d4db3..33344d47 100644 --- a/src/dorkbox/network/serialization/ClassRegistrationIfaceAndImpl.kt +++ b/src/dorkbox/network/serialization/ClassRegistrationIfaceAndImpl.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/serialization/KryoExtra.kt b/src/dorkbox/network/serialization/KryoExtra.kt index 6326b518..f92cccfa 100644 --- a/src/dorkbox/network/serialization/KryoExtra.kt +++ b/src/dorkbox/network/serialization/KryoExtra.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/serialization/NetworkSerializationManager.kt b/src/dorkbox/network/serialization/NetworkSerializationManager.kt index 3767b6c8..22bb4dae 100644 --- a/src/dorkbox/network/serialization/NetworkSerializationManager.kt +++ b/src/dorkbox/network/serialization/NetworkSerializationManager.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/serialization/Serialization.kt b/src/dorkbox/network/serialization/Serialization.kt index 96968ceb..276827b7 100644 --- a/src/dorkbox/network/serialization/Serialization.kt +++ b/src/dorkbox/network/serialization/Serialization.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/storage/DB_Server.kt b/src/dorkbox/network/storage/DB_Server.kt index e1c0baae..29f71009 100644 --- a/src/dorkbox/network/storage/DB_Server.kt +++ b/src/dorkbox/network/storage/DB_Server.kt @@ -1,5 +1,5 @@ /* - * Copyright 2014 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/storage/NullSettingsStore.kt b/src/dorkbox/network/storage/NullSettingsStore.kt index 157f199b..d680cec1 100644 --- a/src/dorkbox/network/storage/NullSettingsStore.kt +++ b/src/dorkbox/network/storage/NullSettingsStore.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/storage/PropertyStore.kt b/src/dorkbox/network/storage/PropertyStore.kt index 5dfe1a2a..bb9c0a46 100644 --- a/src/dorkbox/network/storage/PropertyStore.kt +++ b/src/dorkbox/network/storage/PropertyStore.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/src/dorkbox/network/storage/SettingsStore.kt b/src/dorkbox/network/storage/SettingsStore.kt index 7e68c766..fc2f2ff3 100644 --- a/src/dorkbox/network/storage/SettingsStore.kt +++ b/src/dorkbox/network/storage/SettingsStore.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/test/dorkboxTest/network/AeronClient.kt b/test/dorkboxTest/network/AeronClient.kt index 87276c1b..bf7b93eb 100644 --- a/test/dorkboxTest/network/AeronClient.kt +++ b/test/dorkboxTest/network/AeronClient.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkboxTest.network import ch.qos.logback.classic.Level diff --git a/test/dorkboxTest/network/AeronServer.kt b/test/dorkboxTest/network/AeronServer.kt index abf4b603..b796d4f7 100644 --- a/test/dorkboxTest/network/AeronServer.kt +++ b/test/dorkboxTest/network/AeronServer.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkboxTest.network import ch.qos.logback.classic.Level diff --git a/test/dorkboxTest/network/BaseTest.kt b/test/dorkboxTest/network/BaseTest.kt index 202abe45..ed631b1a 100644 --- a/test/dorkboxTest/network/BaseTest.kt +++ b/test/dorkboxTest/network/BaseTest.kt @@ -1,4 +1,19 @@ -/* Copyright (c) 2008, Nathan Sweet +/* + * Copyright 2020 dorkbox, llc + * + * 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. + * + * Copyright (c) 2008, Nathan Sweet * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following diff --git a/test/dorkboxTest/network/ListenerTest.kt b/test/dorkboxTest/network/ListenerTest.kt index 0df05b5b..b778c7c3 100644 --- a/test/dorkboxTest/network/ListenerTest.kt +++ b/test/dorkboxTest/network/ListenerTest.kt @@ -1,4 +1,19 @@ -/* Copyright (c) 2008, Nathan Sweet +/* + * Copyright 2020 dorkbox, llc + * + * 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. + * + * Copyright (c) 2008, Nathan Sweet * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following diff --git a/test/dorkboxTest/network/MultipleServerTest.kt b/test/dorkboxTest/network/MultipleServerTest.kt index d3e9dfbc..1630fae5 100644 --- a/test/dorkboxTest/network/MultipleServerTest.kt +++ b/test/dorkboxTest/network/MultipleServerTest.kt @@ -1,4 +1,19 @@ -/* Copyright (c) 2008, Nathan Sweet +/* + * Copyright 2020 dorkbox, llc + * + * 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. + * + * Copyright (c) 2008, Nathan Sweet * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following diff --git a/test/dorkboxTest/network/PingPongTest.kt b/test/dorkboxTest/network/PingPongTest.kt index 86229145..e4c1fd7e 100644 --- a/test/dorkboxTest/network/PingPongTest.kt +++ b/test/dorkboxTest/network/PingPongTest.kt @@ -1,4 +1,19 @@ -/* Copyright (c) 2008, Nathan Sweet +/* + * Copyright 2020 dorkbox, llc + * + * 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. + * + * Copyright (c) 2008, Nathan Sweet * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following diff --git a/test/dorkboxTest/network/rmi/RmiDelayedInvocationSpamTest.kt b/test/dorkboxTest/network/rmi/RmiDelayedInvocationSpamTest.kt index 5d5356f9..6b1faa61 100644 --- a/test/dorkboxTest/network/rmi/RmiDelayedInvocationSpamTest.kt +++ b/test/dorkboxTest/network/rmi/RmiDelayedInvocationSpamTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkboxTest.network.rmi import dorkbox.network.Client import dorkbox.network.Configuration diff --git a/test/dorkboxTest/network/rmi/RmiDelayedInvocationTest.kt b/test/dorkboxTest/network/rmi/RmiDelayedInvocationTest.kt index 42d65c4b..c4b344ab 100644 --- a/test/dorkboxTest/network/rmi/RmiDelayedInvocationTest.kt +++ b/test/dorkboxTest/network/rmi/RmiDelayedInvocationTest.kt @@ -1,3 +1,20 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkboxTest.network.rmi + import dorkbox.network.Client import dorkbox.network.Configuration import dorkbox.network.Server diff --git a/test/dorkboxTest/network/rmi/RmiInitValidationTest.kt b/test/dorkboxTest/network/rmi/RmiInitValidationTest.kt index 8b8e8a47..b8fa1c57 100644 --- a/test/dorkboxTest/network/rmi/RmiInitValidationTest.kt +++ b/test/dorkboxTest/network/rmi/RmiInitValidationTest.kt @@ -1,5 +1,5 @@ /* - * Copyright 2016 dorkbox, llc + * Copyright 2020 dorkbox, llc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,25 +12,6 @@ * 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. - * - * Copyright (c) 2008, Nathan Sweet - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following - * conditions are met: - * - * - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - * - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the distribution. - * - Neither the name of Esoteric Software nor the names of its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, - * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package dorkboxTest.network.rmi diff --git a/test/dorkboxTest/network/rmi/RmiOverrideAndProxyTest.kt b/test/dorkboxTest/network/rmi/RmiOverrideAndProxyTest.kt index 220515b9..3da9873a 100644 --- a/test/dorkboxTest/network/rmi/RmiOverrideAndProxyTest.kt +++ b/test/dorkboxTest/network/rmi/RmiOverrideAndProxyTest.kt @@ -1,5 +1,5 @@ /* - * Copyright 2016 dorkbox, llc + * Copyright 2020 dorkbox, llc * * 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/test/dorkboxTest/network/rmi/RmiPackIdTest.kt b/test/dorkboxTest/network/rmi/RmiPackIdTest.kt index 29bd87c0..d39771a6 100644 --- a/test/dorkboxTest/network/rmi/RmiPackIdTest.kt +++ b/test/dorkboxTest/network/rmi/RmiPackIdTest.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2020 dorkbox, llc + * + * 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 dorkboxTest.network.rmi import dorkbox.network.rmi.RmiUtils diff --git a/test/dorkboxTest/network/rmi/classes/MessageWithTestCow.kt b/test/dorkboxTest/network/rmi/classes/MessageWithTestCow.kt index 534452d4..4501ce5b 100644 --- a/test/dorkboxTest/network/rmi/classes/MessageWithTestCow.kt +++ b/test/dorkboxTest/network/rmi/classes/MessageWithTestCow.kt @@ -1,9 +1,10 @@ /* - * Copyright 2019 dorkbox, llc. + * Copyright 2020 dorkbox, llc * * 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 diff --git a/test/dorkboxTest/network/rmi/classes/TestCow.kt b/test/dorkboxTest/network/rmi/classes/TestCow.kt index d6c96add..37eba74c 100644 --- a/test/dorkboxTest/network/rmi/classes/TestCow.kt +++ b/test/dorkboxTest/network/rmi/classes/TestCow.kt @@ -1,9 +1,10 @@ /* - * Copyright 2019 dorkbox, llc. + * Copyright 2020 dorkbox, llc * * 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 diff --git a/test/dorkboxTest/network/rmi/classes/TestCowBase.kt b/test/dorkboxTest/network/rmi/classes/TestCowBase.kt index a65ead63..a3253098 100644 --- a/test/dorkboxTest/network/rmi/classes/TestCowBase.kt +++ b/test/dorkboxTest/network/rmi/classes/TestCowBase.kt @@ -1,9 +1,10 @@ /* - * Copyright 2019 dorkbox, llc. + * Copyright 2020 dorkbox, llc * * 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 @@ -18,6 +19,6 @@ package dorkboxTest.network.rmi.classes * This is a different interface so we can also test CachedMethod operations */ interface TestCowBase { - @Throws(UnsupportedOperationException::class) fun throwException() + suspend fun throwSuspendException() } diff --git a/test/dorkboxTest/network/rmi/classes/TestCowBaseImpl.kt b/test/dorkboxTest/network/rmi/classes/TestCowBaseImpl.kt index 3b28bbfb..5efb9f14 100644 --- a/test/dorkboxTest/network/rmi/classes/TestCowBaseImpl.kt +++ b/test/dorkboxTest/network/rmi/classes/TestCowBaseImpl.kt @@ -1,9 +1,10 @@ /* - * Copyright 2019 dorkbox, llc. + * Copyright 2020 dorkbox, llc * * 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 @@ -19,6 +20,10 @@ open class TestCowBaseImpl : TestCowBase { throw UnsupportedOperationException("Why would I do that?") } + override suspend fun throwSuspendException() { + throw UnsupportedOperationException("Why would I do that on suspend?") + } + open fun id(): Int { return Int.MAX_VALUE } diff --git a/test/dorkboxTest/network/rmi/classes/TestCowImpl.kt b/test/dorkboxTest/network/rmi/classes/TestCowImpl.kt index 0b40af78..425d517e 100644 --- a/test/dorkboxTest/network/rmi/classes/TestCowImpl.kt +++ b/test/dorkboxTest/network/rmi/classes/TestCowImpl.kt @@ -1,9 +1,10 @@ /* - * Copyright 2019 dorkbox, llc. + * Copyright 2020 dorkbox, llc * * 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 diff --git a/test/dorkboxTest/network/rmi/multiJVM/TestClient.kt b/test/dorkboxTest/network/rmi/multiJVM/TestClient.kt index 34dc9fc0..b2ff1f40 100644 --- a/test/dorkboxTest/network/rmi/multiJVM/TestClient.kt +++ b/test/dorkboxTest/network/rmi/multiJVM/TestClient.kt @@ -1,10 +1,11 @@ -package dorkboxTest.network.rmi.multiJVM + /* - * Copyright 2019 dorkbox, llc. + * Copyright 2020 dorkbox, llc * * 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 @@ -13,6 +14,8 @@ package dorkboxTest.network.rmi.multiJVM * See the License for the specific language governing permissions and * limitations under the License. */ +package dorkboxTest.network.rmi.multiJVM + import ch.qos.logback.classic.Level import ch.qos.logback.classic.Logger import ch.qos.logback.classic.encoder.PatternLayoutEncoder diff --git a/test/dorkboxTest/network/rmi/multiJVM/TestServer.kt b/test/dorkboxTest/network/rmi/multiJVM/TestServer.kt index d5a1e4eb..d569ed19 100644 --- a/test/dorkboxTest/network/rmi/multiJVM/TestServer.kt +++ b/test/dorkboxTest/network/rmi/multiJVM/TestServer.kt @@ -1,10 +1,10 @@ -package dorkboxTest.network.rmi.multiJVM /* - * Copyright 2019 dorkbox, llc. + * Copyright 2020 dorkbox, llc * * 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 @@ -13,6 +13,8 @@ package dorkboxTest.network.rmi.multiJVM * See the License for the specific language governing permissions and * limitations under the License. */ +package dorkboxTest.network.rmi.multiJVM + import dorkbox.network.Server import dorkbox.network.connection.Connection import dorkboxTest.network.BaseTest