mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Remove use of Java 6 feature
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5972 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -77,26 +77,6 @@ public class RootElementNameMetadataExtracterSelector
|
||||
extractersByRootElementName = Collections.emptyMap();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the SAX parser factory to use to parse the incoming documents. If not set,
|
||||
* the default system-wide SAX parser factory is used.
|
||||
*
|
||||
* @param factoryClassName A {@link SAXParserFactory} class name
|
||||
*/
|
||||
public void setSAXParserFactoryClass(String factoryClassName)
|
||||
{
|
||||
try
|
||||
{
|
||||
saxParserFactory = SAXParserFactory.newInstance(
|
||||
factoryClassName,
|
||||
this.getClass().getClassLoader());
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
throw new IllegalArgumentException("Unable to load SAX parser factory from class: " + factoryClassName);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Optionally set the mimetypes supported. They must be XML formats that the chosen
|
||||
* parser will be able to handle.
|
||||
|
Reference in New Issue
Block a user