Build failed due to spotbug

test failed as serializeAndDeserializeRestaurantJson and show spotbug as Bad Practice warning… Please help me solved it

Please also post reference screenshots of errors to get the context.

To get more verbose error info of what’s happening we can use ./gradlew test --info

As the error says, it can’t find any Default constructors. See you’re providing a constructor that takes no arguments.

Also, how would we know for sure the attribute list will only be having two elements always?

thanks :slightly_smiling_face:

Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.