MCPcopy Index your code
hub / github.com/apache/tomcat / validateImport

Method validateImport

java/org/apache/jasper/compiler/Node.java:742–749  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 /**

Callers 1

addImportMethod · 0.95

Calls 3

getMessageMethod · 0.95
indexOfMethod · 0.45
trimMethod · 0.45

Tested by

no test coverage detected