java: Add missing copyright notices.

This commit is contained in:
Ted Stein 2017-05-22 14:21:45 -07:00
Родитель d2ae1ab2b0
Коммит 669743b94d
25 изменённых файлов: 77 добавлений и 24 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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 <stdio.h>
#include <string.h>

Просмотреть файл

@ -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 }

Просмотреть файл

@ -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;

Просмотреть файл

@ -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 {

Просмотреть файл

@ -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'

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;
/**

Просмотреть файл

@ -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.*;

Просмотреть файл

@ -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 {
}
}
}
}
}

Просмотреть файл

@ -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));
}
}
}

Просмотреть файл

@ -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);
}
}
}

Просмотреть файл

@ -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);
}
}
}
}

Просмотреть файл

@ -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));
}
}
}