Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(tests): Cache JavaType to Camel model map #1962

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Jan 29, 2025

No description provided.

@lordrip lordrip requested review from apupier and shivamG640 January 29, 2025 10:57
@lordrip lordrip marked this pull request as ready for review January 29, 2025 11:09
@lordrip lordrip merged commit e334242 into KaotoIO:feat/form-with-anyof-support Jan 29, 2025
4 of 8 checks passed
@lordrip lordrip deleted the feat/add-required-properties-from-catalog branch January 29, 2025 11:09

public class CamelCatalogSchemaEnhancer {

private final CamelCatalog camelCatalog;
private final Map<String, String> JAVA_TYPE_TO_MODEL_NAME = new LinkedHashMap<>();
Copy link
Member

Choose a reason for hiding this comment

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

unless specific constraints (like we want to keep the order for keys inserted), it is better to use HashMap as it is faster

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, I didn't know, I'll change it

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.

2 participants