This is an automated email from the ASF dual-hosted git repository.
chenhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/master by this push:
new a79a4e21e8 Remove duplicate setBatchReadEnabled (#4215)
a79a4e21e8 is described below
commit a79a4e21e838d595e63b9e62b53951dd34a89c66
Author: Zixuan Liu <[email protected]>
AuthorDate: Wed Feb 21 12:09:09 2024 +0800
Remove duplicate setBatchReadEnabled (#4215)
### Motivation
`setBatchReadEnabled` is duplicated, which breaks the compilation:
```
Error: Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.12.1:compile (default-compile)
on project bookkeeper-server: Compilation failure: Compilation failure:
Error:
/home/runner/work/bookkeeper/bookkeeper/bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ClientConfiguration.java:[2110,32]
method setBatchReadEnabled(boolean) is already defined in class
org.apache.bookkeeper.conf.ClientConfiguration
```
### Changes
Remove the duplicated method.
---
.../main/java/org/apache/bookkeeper/conf/ClientConfiguration.java | 5 -----
1 file changed, 5 deletions(-)
diff --git
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ClientConfiguration.java
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ClientConfiguration.java
index 4b6537bc62..feae692465 100644
---
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ClientConfiguration.java
+++
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ClientConfiguration.java
@@ -2107,11 +2107,6 @@ public class ClientConfiguration extends
AbstractConfiguration<ClientConfigurati
return getBoolean(BATCH_READ_ENABLED, true);
}
- public ClientConfiguration setBatchReadEnabled(boolean enabled) {
- setProperty(BATCH_READ_ENABLED, enabled);
- return this;
- }
-
@Override
protected ClientConfiguration getThis() {
return this;