refactor: Modernize ChaincodeBase class
refactor: Modernize ChaincodeBase class
- Utilize Java 8+ features like lambda expressions and Optional
- Implement try-with-resources for better resource management
- Improve logging with concise lambda expressions
- Use switch expressions for cleaner level mapping
- Enhance environment variable processing
- Implement text blocks for multi-line string formatting
- Streamline StreamObserver implementations
- General code cleanup and organization improvements
Signed-off-by: Bhaskar Allam [email protected]
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
2.7% Duplication on New Code
@bestbeforetoday I've added recent changes for compatibility for Java 8, please review it.
The build is failing since the code does not even compile.
Looking at the current set of changes (after the use of language features not available in Java 8 are reverted), the vast majority of the changes are reformatting of the code. A couple of variables are renamed and, in a couple of cases, the logic flow of the code is slightly reordered. What issue is this change addressing?
No response so closing.