Skip to content

Remove printStackTrace calls from demo applications#78

Merged
dkropachev merged 1 commit intomainfrom
fix/debugging-code-cleanup
Mar 4, 2026
Merged

Remove printStackTrace calls from demo applications#78
dkropachev merged 1 commit intomainfrom
fix/debugging-code-cleanup

Conversation

@dkropachev
Copy link
Collaborator

@dkropachev dkropachev commented Mar 4, 2026

Summary

  • Remove inappropriate printStackTrace calls from demo applications
  • Replace with proper error messages to prevent information disclosure

Changes

  • Demo2.java: Replace printStackTrace with descriptive SSL configuration error message
  • Demo4.java: Replace printStackTrace with descriptive SSL configuration error message
  • Maintain error handling but prevent stack trace information disclosure

Test plan

  • Verify compilation passes
  • Test demo applications still handle SSL configuration errors gracefully
  • Confirm no functional behavior changes

Replace printStackTrace with descriptive error messages:
- Demo2.java: Add proper SSL configuration error message
- Demo4.java: Add proper SSL configuration error message

This prevents information disclosure through stack traces
and provides cleaner error handling in demo applications.
@dkropachev dkropachev force-pushed the fix/debugging-code-cleanup branch from 89cdce0 to 5866383 Compare March 4, 2026 14:52
@dkropachev dkropachev self-assigned this Mar 4, 2026
@dkropachev dkropachev merged commit 34a54c9 into main Mar 4, 2026
2 of 3 checks passed
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