Skip to content

Commit

Permalink
[MNG-8296] Support creating unknown Language on the fly (#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet authored Oct 16, 2024
1 parent a293822 commit ee29050
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public Type require(String id) {
ArtifactHandler handler = manager.getArtifactHandler(id);
type = new DefaultType(
id,
languageRegistry.require(handler.getLanguage()),
languageRegistry.lookup(handler.getLanguage()).orElseGet(() -> handler::getLanguage),
handler.getExtension(),
handler.getClassifier(),
handler.isIncludesDependencies(),
Expand Down

0 comments on commit ee29050

Please sign in to comment.