Skip to content
Snippets Groups Projects
Commit 8c080107 authored by Vincent Massol's avatar Vincent Massol
Browse files

Fix typo

parent 50ca2224
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ public class DefaultAttachmentClassLoaderFactory implements AttachmentClassLoade
*/
@Inject
@Named("attachmentjar")
private ExtendedURLStreamHandler attachmentJarHander;
private ExtendedURLStreamHandler attachmentJarHandler;
/**
* {@inheritDoc}
......@@ -88,7 +88,7 @@ public ExtendedURLClassLoader createAttachmentClassLoader(String jarURLs, ClassL
public void extendAttachmentClassLoader(String jarURLs, ExtendedURLClassLoader source) throws Exception
{
for (URI uri : extractURIs(jarURLs)) {
if (uri.getScheme().equalsIgnoreCase(this.attachmentJarHander.getProtocol())) {
if (uri.getScheme().equalsIgnoreCase(this.attachmentJarHandler.getProtocol())) {
source.addURL(new URL(null, uri.toString(),
this.streamHandlerFactory.createURLStreamHandler(uri.getScheme())));
} else {
......@@ -144,6 +144,6 @@ private URI createURI(String attachmentReference) throws URISyntaxException
throw new RuntimeException("Failed to URL encode [" + uriBody + "] using UTF-8.", e);
}
return new URI(this.attachmentJarHander.getProtocol() + "://" + uriBody);
return new URI(this.attachmentJarHandler.getProtocol() + "://" + uriBody);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment