Menu

#1397 Too eager "may expose internal representation by storing an externally mutable object"

3.0.2
closed-fixed
None
5
2015-10-08
2015-07-14
No

The error

x may expose internal representation by storing an externally mutable object into y

complains even if y is a public field. The field being public flags it as not being sensitive internal representation and, in any case, the object stored in the field can be changed by just dereferencing the field.

So this error should not be reported against a public field.

Discussion

  • Tagir Valeev

    Tagir Valeev - 2015-10-08
    • status: open --> open-accepted
    • assigned_to: Tagir Valeev
    • Group: 3.x --> 3.0.2
     
  • Tagir Valeev

    Tagir Valeev - 2015-10-08

    Sounds reasonable.

     
  • Tagir Valeev

    Tagir Valeev - 2015-10-08
    • status: open-accepted --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB