diff --git a/interop/cpp/Makefile b/interop/cpp/Makefile index e2355e45..e091226f 100644 --- a/interop/cpp/Makefile +++ b/interop/cpp/Makefile @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + all: ../../build/compiler/build/gbc/gbc cpp ../idl/interop.bond --output gen clang -g --std=c++11 -lstdc++ -I ~/code/bond/build/cpp -I ~/code/bond/cpp/inc -I ~/code/bond/thirdparty/rapidjson/include -o interop *.cpp gen/*.cpp diff --git a/interop/cpp/interop.cpp b/interop/cpp/interop.cpp index 9b045536..419f8c34 100644 --- a/interop/cpp/interop.cpp +++ b/interop/cpp/interop.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + #include #include diff --git a/interop/idl/interop.bond b/interop/idl/interop.bond index bd16c0c6..aacf8bb7 100644 --- a/interop/idl/interop.bond +++ b/interop/idl/interop.bond @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + namespace com.microsoft.bond.interop; enum SomeEnum { A, B, C } diff --git a/interop/java/src/main/java/com/microsoft/bond/interop/Main.java b/interop/java/src/main/java/com/microsoft/bond/interop/Main.java index a1121445..14b6b53f 100644 --- a/interop/java/src/main/java/com/microsoft/bond/interop/Main.java +++ b/interop/java/src/main/java/com/microsoft/bond/interop/Main.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.interop; import com.microsoft.bond.protocol.FastBinaryReader; diff --git a/jvm/build.gradle b/jvm/build.gradle index ffdbb90f..daeaf06b 100644 --- a/jvm/build.gradle +++ b/jvm/build.gradle @@ -1,7 +1,5 @@ // Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root -// for full license information. - +// Licensed under the MIT license. See LICENSE file in the project root for full license information. buildscript { repositories { diff --git a/jvm/settings.gradle b/jvm/settings.gradle index 57670891..34c52e96 100644 --- a/jvm/settings.gradle +++ b/jvm/settings.gradle @@ -1,18 +1,4 @@ -/* - * This settings file was generated by the Gradle 'init' task. - * - * The settings file is used to specify which projects to include in your build. - * In a single project build this file can be empty or even removed. - * - * Detailed information about configuring a multi-project build in Gradle can be found - * in the user guide at https://docs.gradle.org/3.3/userguide/multi_project_builds.html - */ - -/* -// To declare projects as part of a multi-project build use the 'include' method -include 'shared' -include 'api' -include 'services:webservice' -*/ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. rootProject.name = 'bond' diff --git a/jvm/src/main/java/com/microsoft/bond/BondSerializable.java b/jvm/src/main/java/com/microsoft/bond/BondSerializable.java index 82ca1eb7..c943b037 100644 --- a/jvm/src/main/java/com/microsoft/bond/BondSerializable.java +++ b/jvm/src/main/java/com/microsoft/bond/BondSerializable.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond; import com.microsoft.bond.protocol.ProtocolWriter; diff --git a/jvm/src/main/java/com/microsoft/bond/protocol/BinaryStreamReader.java b/jvm/src/main/java/com/microsoft/bond/protocol/BinaryStreamReader.java index 390cb80e..a36acb71 100644 --- a/jvm/src/main/java/com/microsoft/bond/protocol/BinaryStreamReader.java +++ b/jvm/src/main/java/com/microsoft/bond/protocol/BinaryStreamReader.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import java.io.IOException; diff --git a/jvm/src/main/java/com/microsoft/bond/protocol/BinaryStreamWriter.java b/jvm/src/main/java/com/microsoft/bond/protocol/BinaryStreamWriter.java index 5138777f..0e0d782b 100644 --- a/jvm/src/main/java/com/microsoft/bond/protocol/BinaryStreamWriter.java +++ b/jvm/src/main/java/com/microsoft/bond/protocol/BinaryStreamWriter.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import java.io.IOException; diff --git a/jvm/src/main/java/com/microsoft/bond/protocol/CompactBinaryProtocolWriter.java b/jvm/src/main/java/com/microsoft/bond/protocol/CompactBinaryProtocolWriter.java index 1ca06e1c..e84ebf26 100644 --- a/jvm/src/main/java/com/microsoft/bond/protocol/CompactBinaryProtocolWriter.java +++ b/jvm/src/main/java/com/microsoft/bond/protocol/CompactBinaryProtocolWriter.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import com.microsoft.bond.BondDataType; diff --git a/jvm/src/main/java/com/microsoft/bond/protocol/FastBinaryReader.java b/jvm/src/main/java/com/microsoft/bond/protocol/FastBinaryReader.java index 7b96af54..29b77542 100644 --- a/jvm/src/main/java/com/microsoft/bond/protocol/FastBinaryReader.java +++ b/jvm/src/main/java/com/microsoft/bond/protocol/FastBinaryReader.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import com.microsoft.bond.BondDataType; diff --git a/jvm/src/main/java/com/microsoft/bond/protocol/FastBinaryWriter.java b/jvm/src/main/java/com/microsoft/bond/protocol/FastBinaryWriter.java index a1bf2fc4..38c9b681 100644 --- a/jvm/src/main/java/com/microsoft/bond/protocol/FastBinaryWriter.java +++ b/jvm/src/main/java/com/microsoft/bond/protocol/FastBinaryWriter.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import com.microsoft.bond.BondDataType; diff --git a/jvm/src/main/java/com/microsoft/bond/protocol/ProtocolWriter.java b/jvm/src/main/java/com/microsoft/bond/protocol/ProtocolWriter.java index 40f207c2..e9d3c16f 100644 --- a/jvm/src/main/java/com/microsoft/bond/protocol/ProtocolWriter.java +++ b/jvm/src/main/java/com/microsoft/bond/protocol/ProtocolWriter.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import com.microsoft.bond.BondDataType; diff --git a/jvm/src/main/java/com/microsoft/bond/protocol/StreamHelper.java b/jvm/src/main/java/com/microsoft/bond/protocol/StreamHelper.java index dc8f809c..fc959a90 100644 --- a/jvm/src/main/java/com/microsoft/bond/protocol/StreamHelper.java +++ b/jvm/src/main/java/com/microsoft/bond/protocol/StreamHelper.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import java.io.EOFException; diff --git a/jvm/src/main/java/com/microsoft/bond/protocol/StringHelper.java b/jvm/src/main/java/com/microsoft/bond/protocol/StringHelper.java index 87b11018..ad070cca 100644 --- a/jvm/src/main/java/com/microsoft/bond/protocol/StringHelper.java +++ b/jvm/src/main/java/com/microsoft/bond/protocol/StringHelper.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import java.nio.charset.Charset; diff --git a/jvm/src/main/java/com/microsoft/bond/protocol/TaggedProtocolReader.java b/jvm/src/main/java/com/microsoft/bond/protocol/TaggedProtocolReader.java index b5cdfdac..014579b3 100644 --- a/jvm/src/main/java/com/microsoft/bond/protocol/TaggedProtocolReader.java +++ b/jvm/src/main/java/com/microsoft/bond/protocol/TaggedProtocolReader.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import com.microsoft.bond.BondDataType; diff --git a/jvm/src/main/java/com/microsoft/bond/protocol/UnsignedHelper.java b/jvm/src/main/java/com/microsoft/bond/protocol/UnsignedHelper.java index 14447a7f..0c5afdd3 100644 --- a/jvm/src/main/java/com/microsoft/bond/protocol/UnsignedHelper.java +++ b/jvm/src/main/java/com/microsoft/bond/protocol/UnsignedHelper.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import java.math.BigInteger; diff --git a/jvm/src/main/java/com/microsoft/bond/protocol/VarUIntHelper.java b/jvm/src/main/java/com/microsoft/bond/protocol/VarUIntHelper.java index 4f38a9aa..f2eb08e6 100644 --- a/jvm/src/main/java/com/microsoft/bond/protocol/VarUIntHelper.java +++ b/jvm/src/main/java/com/microsoft/bond/protocol/VarUIntHelper.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import java.io.IOException; diff --git a/jvm/src/main/java/com/microsoft/bond/protocol/ZigzagHelper.java b/jvm/src/main/java/com/microsoft/bond/protocol/ZigzagHelper.java index 95a29c0b..209a4cde 100644 --- a/jvm/src/main/java/com/microsoft/bond/protocol/ZigzagHelper.java +++ b/jvm/src/main/java/com/microsoft/bond/protocol/ZigzagHelper.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; /** diff --git a/jvm/src/main/java/com/microsoft/bond/schema/SchemaUtils.java b/jvm/src/main/java/com/microsoft/bond/schema/SchemaUtils.java index 62be8d3e..1d6fc92b 100644 --- a/jvm/src/main/java/com/microsoft/bond/schema/SchemaUtils.java +++ b/jvm/src/main/java/com/microsoft/bond/schema/SchemaUtils.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.schema; import com.microsoft.bond.*; diff --git a/jvm/src/test/java/com/microsoft/bond/protocol/StreamHelperTest.java b/jvm/src/test/java/com/microsoft/bond/protocol/StreamHelperTest.java index 1b18f7fc..17d24148 100644 --- a/jvm/src/test/java/com/microsoft/bond/protocol/StreamHelperTest.java +++ b/jvm/src/test/java/com/microsoft/bond/protocol/StreamHelperTest.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import org.junit.Test; @@ -90,4 +93,4 @@ public class StreamHelperTest { } } } -} \ No newline at end of file +} diff --git a/jvm/src/test/java/com/microsoft/bond/protocol/StringHelperTest.java b/jvm/src/test/java/com/microsoft/bond/protocol/StringHelperTest.java index d5d895a6..7cabf7e6 100644 --- a/jvm/src/test/java/com/microsoft/bond/protocol/StringHelperTest.java +++ b/jvm/src/test/java/com/microsoft/bond/protocol/StringHelperTest.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import org.junit.Test; @@ -388,4 +391,4 @@ public class StringHelperTest { // test encoded length assertEquals(encoded.length, StringHelper.getEncodedWStringLength(decoded)); } -} \ No newline at end of file +} diff --git a/jvm/src/test/java/com/microsoft/bond/protocol/UnsignedHelperTests.java b/jvm/src/test/java/com/microsoft/bond/protocol/UnsignedHelperTests.java index fd170174..e34c172b 100644 --- a/jvm/src/test/java/com/microsoft/bond/protocol/UnsignedHelperTests.java +++ b/jvm/src/test/java/com/microsoft/bond/protocol/UnsignedHelperTests.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import org.junit.Test; @@ -934,4 +937,4 @@ public class UnsignedHelperTests { assertEquals(expectedWidenedValue, actualWidenedValue); assertTrue("Result must be non-negative.", actualWidenedValue.signum() >= 0); } -} \ No newline at end of file +} diff --git a/jvm/src/test/java/com/microsoft/bond/protocol/VarUIntHelperTest.java b/jvm/src/test/java/com/microsoft/bond/protocol/VarUIntHelperTest.java index 280fdf99..69ac971e 100644 --- a/jvm/src/test/java/com/microsoft/bond/protocol/VarUIntHelperTest.java +++ b/jvm/src/test/java/com/microsoft/bond/protocol/VarUIntHelperTest.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import org.junit.Test; @@ -1002,4 +1005,4 @@ public class VarUIntHelperTest { assertEquals(unsignedUnencoded, unsignedDecoded); } } -} \ No newline at end of file +} diff --git a/jvm/src/test/java/com/microsoft/bond/protocol/ZigzagHelperTest.java b/jvm/src/test/java/com/microsoft/bond/protocol/ZigzagHelperTest.java index a6169fb3..14e735cd 100644 --- a/jvm/src/test/java/com/microsoft/bond/protocol/ZigzagHelperTest.java +++ b/jvm/src/test/java/com/microsoft/bond/protocol/ZigzagHelperTest.java @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + package com.microsoft.bond.protocol; import org.junit.Test; @@ -786,4 +789,4 @@ public class ZigzagHelperTest { assertEquals(unsignedEncoded, ZigzagHelper.encodeZigzag64(signedUnencoded)); assertEquals(signedUnencoded, ZigzagHelper.decodeZigzag64(unsignedEncoded)); } -} \ No newline at end of file +}