Skip to content

Commit 5e890cb

Browse files
Merge branch 'main' into main
2 parents 5fb3c23 + a301c3d commit 5e890cb

22 files changed

Lines changed: 880 additions & 22 deletions

NOTICE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
11
AWS Crt Java
22
Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
SPDX-License-Identifier: Apache-2.0.
4+
5+
** XXHash - https://xxhash.com/
6+
Copyright (c) 2012-2021 Yann Collet
7+
All rights reserved.
8+
9+
BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
10+
11+
Redistribution and use in source and binary forms, with or without modification,
12+
are permitted provided that the following conditions are met:
13+
14+
* Redistributions of source code must retain the above copyright notice, this
15+
list of conditions and the following disclaimer.
16+
17+
* Redistributions in binary form must reproduce the above copyright notice, this
18+
list of conditions and the following disclaimer in the documentation and/or
19+
other materials provided with the distribution.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,6 @@ To debug native code with VSCode or CLion or any other IDE:
298298
3. Set the parameters to be the ones used by the ```mvn``` script, as per above
299299
4. Set the working directory to the `aws-crt-java` directory
300300
5. On windows, you will need to manually load the PDB via the Modules window in Visual Studio, as it is not embedded in the JAR. It will be in the ```target/cmake-build/lib/windows/<arch>``` folder.
301+
302+
## Attribution
303+
This library exposes native XXHash implementation (https://github.com/Cyan4973/xxHash) through JNI interface.

crt/aws-c-http

crt/aws-lc

crt/s2n

Submodule s2n updated from 3276a08 to f5e5e83

src/main/java/software/amazon/awssdk/crt/CRT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,16 +492,16 @@ private static native void awsCrtInit(int memoryTracingLevel, boolean debugWait,
492492
* Given an error code, get a boolean to check if an error is transient or not.
493493
*
494494
* Transient errors are defined as IO level errors where we are unable to read an HTTP response.
495-
* This can occur due to connect timeouts, read timeouts, or the server closing the connection without
495+
* This can occur due to connect timeouts, read timeouts, or the server closing the connection without
496496
* sending a response. This method helps identify CRT error codes that are not generic or widely adopted.
497497
*
498-
* This is not the complete logic to identify transient or retryable errors, this includes only IO level
498+
* This is not the complete logic to identify transient or retryable errors, this includes only IO level
499499
* errors that are transient.
500500
*
501501
* @param errorCode An error code returned from an exception or other native function call
502502
* @return A boolean for if the error is transient or not
503503
*/
504-
public static native Boolean awsIsTransientError(int errorCode);
504+
public static native boolean awsIsTransientError(int errorCode);
505505

506506
/**
507507
* @return The number of bytes allocated in native resources. If

0 commit comments

Comments
 (0)