Skip to content

Commit

Permalink
Fix assertion message in DefaultDataBuffer
Browse files Browse the repository at this point in the history
Closes gh-27567
  • Loading branch information
rstoyanchev committed Oct 18, 2021
1 parent 4978eef commit 346b755
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -462,9 +462,9 @@ public String toString() {

private void checkIndex(int index, int length) {
assertIndex(index >= 0, "index %d must be >= 0", index);
assertIndex(length >= 0, "length %d must be >= 0", index);
assertIndex(length >= 0, "length %d must be >= 0", length);
assertIndex(index <= this.capacity, "index %d must be <= %d", index, this.capacity);
assertIndex(length <= this.capacity, "length %d must be <= %d", index, this.capacity);
assertIndex(length <= this.capacity, "length %d must be <= %d", length, this.capacity);
}

private void assertIndex(boolean expression, String format, Object... args) {
Expand Down

0 comments on commit 346b755

Please sign in to comment.