Skip to content

Fix #1539: Change ObaStudyRequest.Builder.mUri to an instance field#1542

Open
Gitkbc wants to merge 1 commit into
OneBusAway:mainfrom
Gitkbc:fix/issue-1539-static-uri
Open

Fix #1539: Change ObaStudyRequest.Builder.mUri to an instance field#1542
Gitkbc wants to merge 1 commit into
OneBusAway:mainfrom
Gitkbc:fix/issue-1539-static-uri

Conversation

@Gitkbc

@Gitkbc Gitkbc commented Mar 20, 2026

Copy link
Copy Markdown

This PR fixes a bug where the URI field in ObaStudyRequest.Builder was declared as static.

Because it was static, the URI was shared across all Builder instances. This could cause a "stale data" issue where a new request might accidentally reuse the URI from a previous successful call if a subsequent initialization failed.
I've changed this to an instance field mUri as suggested in the description of the #1539 issue to ensure each Builder maintains its own state.

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.

1 participant