Skip to content

Fix raw EthLog.LogResult generic usages (#2252)#2259

Closed
Sukuna0007Abhi wants to merge 1 commit intoLFDT-web3j:mainfrom
Sukuna0007Abhi:fix/2252-ethlog-logresult-generics
Closed

Fix raw EthLog.LogResult generic usages (#2252)#2259
Sukuna0007Abhi wants to merge 1 commit intoLFDT-web3j:mainfrom
Sukuna0007Abhi:fix/2252-ethlog-logresult-generics

Conversation

@Sukuna0007Abhi
Copy link
Copy Markdown

@Sukuna0007Abhi Sukuna0007Abhi commented Apr 6, 2026

What does this PR do?

Fixes issue #2252 by removing raw EthLog.LogResult generic usages and replacing them with wildcard-parameterized types across EthLog response handling, filter APIs/implementations, and affected tests.

Where should the reviewer start?

Start with core/src/main/java/org/web3j/protocol/core/methods/response/EthLog.java, then review filter contract and implementations in:
core/src/main/java/org/web3j/protocol/core/filters/Filter.java,
core/src/main/java/org/web3j/protocol/core/filters/BlockFilter.java,
core/src/main/java/org/web3j/protocol/core/filters/BlocksFilter.java,
core/src/main/java/org/web3j/protocol/core/filters/LogFilter.java,
core/src/main/java/org/web3j/protocol/core/filters/LogsFilter.java,
core/src/main/java/org/web3j/protocol/core/filters/PendingTransactionFilter.java,
core/src/main/java/org/web3j/protocol/core/filters/PendingTransactionsFilter.java.

Why is it needed?

Raw generic usage of EthLog.LogResult produces IDE/compiler warnings and weakens type safety. Parameterizing these usages improves API clarity and developer experience without changing runtime behavior.

Checklist

  • I've read the contribution guidelines.
  • I've added tests (if applicable).
  • I've added a changelog entry if necessary.

Signed-off-by: Sukuna0007Abhi <appsonly310@gmail.com>
@gtebrean
Copy link
Copy Markdown
Contributor

fixed with #2254 already

@gtebrean gtebrean closed this Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants