Skip to content

Commit

Permalink
Fix (#19787)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlainaFaisal authored Aug 14, 2024
1 parent 64b1b3e commit af008b0
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,12 @@ private Set<File> resolveShellFileImports(File es6SourceDirectory,
ThemedURLTranslator.VALUE, JavaScript.class,
ThemedURLTranslator.VALUE));

Collection<Set<String>> htmlImports = annotationValuesExtractor
Map<Class<? extends Annotation>, Set<String>> htmlImports = annotationValuesExtractor
.extractAnnotationValues(Collections.singletonMap(
HtmlImport.class, ThemedURLTranslator.VALUE))
.values();
if (!htmlImports.isEmpty()) {
HtmlImport.class, ThemedURLTranslator.VALUE));

if (htmlImports.containsKey(HtmlImport.class)
&& !htmlImports.get(HtmlImport.class).isEmpty()) {
throw new RuntimeException(
"Usage of HtmlImport is deprecated and not supported. Please remove all HtmlImport annotations and use standard JavaScript or CSS imports.");
}
Expand Down

0 comments on commit af008b0

Please sign in to comment.