[JAVA-4655] Fix ConventionModel constructor Created: 18/Jun/22  Updated: 28/Oct/23  Resolved: 19/Jun/22

Status: Closed
Project: Java Driver
Component/s: Test Coverage
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Improvement Priority: Trivial - P5
Reporter: Clara Fang Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Summary

In bson/src/test/unit/org/bson/codecs/pojo/entities/ConventionModel.java, the constructor ConventionModel(customId, child, simpleModel) is missing a parameter for myIntField, which is instead assigned to itself.

public ConventionModel(final String customId, final ConventionModel child, final SimpleModel simpleModel) {
    this.myIntField = myIntField;
    this.customId = customId;
    this.child = child;
    this.simpleModel = simpleModel;
} 

Version: latest

 



 Comments   
Comment by Githook User [ 19/Jun/22 ]

Author:

{'name': 'Clara Fang', 'email': '68715004+clara0@users.noreply.github.com', 'username': 'clara0'}

Message: Fix ConventionModel constructor (#968)

JAVA-4655
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/74d31a2bbb13b5b37d7a6ff235b5c9f385c22469

Comment by Clara Fang [ 19/Jun/22 ]

Pull request: https://github.com/mongodb/mongo-java-driver/pull/968

Generated at Thu Feb 08 09:02:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.