Skip to content

Clean up LogDumpProvider#2631

Open
rovarga wants to merge 1 commit intoapache:mainfrom
rovarga:ldp
Open

Clean up LogDumpProvider#2631
rovarga wants to merge 1 commit intoapache:mainfrom
rovarga:ldp

Conversation

@rovarga
Copy link
Copy Markdown
Contributor

@rovarga rovarga commented May 3, 2026

This a deep modernization:

  • use local variable type inference to shorten declarations
  • use type-safe framework interfaces and utilities
  • use NIO2 to perform file-to-OutputStream

Signed-off-by: Robert Varga robert.varga@pantheon.tech

This a deep modernization:
- add a missing @OverRide
- use local variable type inference to shorten declarations
- use type-safe BundleContext.getServiceReference(Class)
- use FrameworkUtil.asMap(Dictionary) for improved iteration
- use Files.copy(OutputStream, Path) for byte transfer
- try-with-resources to ensure the OutputStream is closed, as per
  DumpDestination.add(String) contract

Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
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.

1 participant