Skip to content

Convert Trek.trackLog to an instance variable #215

@TerryEbdon

Description

@TerryEbdon

The trackLog field is declared as static, which creates shared state across all Trek instances. This can cause issues in testing (as evidenced by the need to clear it in setUp) and in scenarios where multiple Trek instances might exist. Consider making this an instance field instead.

  List<Coords2d> trackLog = [ ]

Originally posted by @Copilot in #214 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions