REPO-3125 Remove wrong exception class imports (#85)

This commit is contained in:
Alex Mukha
2018-03-05 15:27:26 +00:00
committed by GitHub
parent e32788274d
commit 0d5bb4123c
7 changed files with 128 additions and 142 deletions

View File

@@ -41,8 +41,6 @@ import org.springframework.extensions.config.ConfigService;
import org.springframework.extensions.config.evaluator.Evaluator;
import org.springframework.extensions.config.xml.elementreader.ConfigElementReader;
import com.sun.star.uno.RuntimeException;
/**
* An innder class that uses the {@link RepoXMLConfigService config service} to asynchronously
* refresh tenant config data.

View File

@@ -79,8 +79,6 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.extensions.surf.util.I18NUtil;
import com.sun.star.lang.NullPointerException;
/**
* This class adds some new behaviour to the standard ActionExecuterAbstractBase
* in order to support the RenditionService.

View File

@@ -33,8 +33,6 @@ import org.alfresco.service.cmr.repository.StoreRef;
import org.alfresco.util.Pair;
import org.apache.commons.lang.StringUtils;
import com.sun.star.uno.RuntimeException;
/**
* Creates string-pair hashes of {@link NodeRef}s where the first string is a
* stored hash combination for {@link NodeRef} store elements (protocol and id)

View File

@@ -53,8 +53,6 @@ import org.springframework.beans.factory.support.ManagedList;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.sun.star.io.IOException;
/**
* Helper class to list the dependencies between different
* spring context files that make up a full or partial
@@ -300,7 +298,7 @@ public class ContextDependencyLister
/**
* Renders the dependencies as GraphViz DotXML
*/
public void graphVizDependencies(String outFile) throws IOException, FileNotFoundException {
public void graphVizDependencies(String outFile) throws FileNotFoundException {
calculateDependencies();
// We need to know one bean from each context that we'll output

View File

@@ -36,8 +36,6 @@ import javax.xml.transform.stream.StreamResult;
import org.alfresco.util.schemacomp.model.Schema;
import org.xml.sax.SAXException;
import com.sun.star.uno.RuntimeException;
/**
* Converts an in-memory Schema to an XML output stream.
*

View File

@@ -44,8 +44,6 @@ import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import com.sun.star.auth.InvalidArgumentException;
/**
* A test designed to catch ConnectionPoolException
*
@@ -80,7 +78,7 @@ public class ConnectionPoolOverloadTest
}
else
{
throw new InvalidArgumentException("The db.pool.max property is not valid.");
throw new IllegalArgumentException("The db.pool.max property is not valid.");
}
String dbPoolWaitMaxProp = properties.getProperty("db.pool.wait.max");
@@ -90,7 +88,7 @@ public class ConnectionPoolOverloadTest
}
else
{
throw new InvalidArgumentException("The db.pool.wait.max property is not valid.");
throw new IllegalArgumentException("The db.pool.wait.max property is not valid.");
}
dbPoolWaitMax = dbPoolWaitMax == -1 ? 100 : dbPoolWaitMax;

View File

@@ -65,8 +65,6 @@ import org.alfresco.util.schemacomp.validator.NameValidator;
import org.junit.Before;
import org.junit.Test;
import com.sun.star.uno.RuntimeException;
/**
* Tests for the {@link DbObjectXMLTransformer} class.
*