Just need enough validation to make sure nothing strange is going on. The compiler will validate this thoroughly when it tries to compile the resulting .java file.
(String importEntry)
| 740 | * thoroughly when it tries to compile the resulting .java file. |
| 741 | */ |
| 742 | private String validateImport(String importEntry) { |
| 743 | // This should either be a fully-qualified class name or a package |
| 744 | // name with a wildcard |
| 745 | if (importEntry.indexOf(';') > -1) { |
| 746 | throw new IllegalArgumentException(Localizer.getMessage("jsp.error.page.invalid.import")); |
| 747 | } |
| 748 | return importEntry.trim(); |
| 749 | } |
| 750 | } |
| 751 | |
| 752 | /** |
no test coverage detected