Skip to content

Conversation

@ic0ns
Copy link
Contributor

@ic0ns ic0ns commented Jun 30, 2025

Summary

  • Fixed SpotBugs warnings about non-transient non-serializable instance fields in serializable classes
  • Made all classes in the object graph implement Serializable to ensure proper serialization

Changes

  • Made RatingInfluencer and Recommendation classes implement Serializable
  • Made PropertyResultRatingInfluencer and PropertyResultRecommendation implement Serializable
  • Made AnalyzedProperty and AnalyzedPropertyCategory interfaces extend Serializable
  • Added SerializationTest to verify that both RatingInfluencers and Recommendations can be properly serialized and deserialized

Test plan

  • Added unit tests for serialization of both classes
  • All tests pass
  • Code compiles successfully
  • Code is formatted with spotless

Developer and others added 2 commits June 30, 2025 14:10
- Made RatingInfluencer and Recommendation classes implement Serializable
- Made PropertyResultRatingInfluencer and PropertyResultRecommendation implement Serializable
- Made AnalyzedProperty and AnalyzedPropertyCategory interfaces extend Serializable
- Added SerializationTest to verify serialization works correctly

This fixes SpotBugs warnings about non-transient non-serializable fields in serializable classes.
# Conflicts:
#	src/main/java/de/rub/nds/scanner/core/report/rating/PropertyResultRatingInfluencer.java
#	src/test/java/de/rub/nds/scanner/core/report/rating/SerializationTest.java
@TrueSkrillor TrueSkrillor enabled auto-merge July 2, 2025 14:00
@TrueSkrillor TrueSkrillor merged commit 9c438a7 into main Jul 2, 2025
13 checks passed
@TrueSkrillor TrueSkrillor deleted the fix-serialization-issues branch July 2, 2025 14:02
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.

3 participants