Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
pull_request:
type: [opened, reopened, edited, synchronize]

permissions:
contents: read

jobs:
build:
name: Build YDB Java SDK
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
pull_request:
type: [opened, reopened, edited, synchronize]

permissions:
contents: read

jobs:
prepare:
name: Prepare Maven cache
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: read

jobs:
validate:
name: Validate YDB Java SDK
Expand Down
4 changes: 2 additions & 2 deletions auth-providers/oauth2-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
<version>1.84</version>
<version>1.85</version>
</dependency>

<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk18on</artifactId>
<version>1.84</version>
<version>1.85</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
<version>1.84</version>
<version>1.85</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk18on</artifactId>
<version>1.84</version>
<version>1.85</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
public class BufferManager {
// use logger from WriterImpl
private static final Logger logger = LoggerFactory.getLogger(WriterImpl.class);
private static final long MAX_BLOCKS_COUNT = Integer.MAX_VALUE - 1;

private final String debugId;
private final long bufferMaxSize;
Expand Down Expand Up @@ -210,7 +211,7 @@ public long updateMessageSize(long oldSize, long newSize) {
private static int calculateBlockSize(long maxBufferSize) {
int bits = 0;
long blocksCount = maxBufferSize;
while (blocksCount > Integer.MAX_VALUE - 1) {
while (blocksCount > MAX_BLOCKS_COUNT) {
bits = bits + 1;
blocksCount = blocksCount >>> 1;

Expand Down
Loading