Skip to content

Conversation

valters
Copy link

@valters valters commented Mar 19, 2025

previously map.values.iterator.next was selecting a random table

previously map.values.iterator.next was selecting a random table
public ExtractionModel(DataModel dataModel, ExecutionContext executionContext) {
this.dataModel = dataModel;
this.version = null;
subject = dataModel.getTables().iterator().hasNext()? dataModel.getTables().iterator().next() : null;
Copy link
Author

@valters valters Mar 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HashMap.values().iterator() happens to select some entry that happens to have first hash value: I think it's not great that on startup the focus table is essentially randomly selected.

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