@ -79,7 +79,7 @@ public abstract class AbstractLobStreamingResultSetExtractor<T> implements Resul
@@ -79,7 +79,7 @@ public abstract class AbstractLobStreamingResultSetExtractor<T> implements Resul
@ -160,7 +160,7 @@ public class SqlFunction<T> extends MappingSqlQuery<T> {
@@ -160,7 +160,7 @@ public class SqlFunction<T> extends MappingSqlQuery<T> {
publicintrun(Object...parameters){
Objectobj=super.findObject(parameters);
if(!(objinstanceofNumber)){
thrownewTypeMismatchDataAccessException("Couldn't convert result object ["+obj+"] to int");
thrownewTypeMismatchDataAccessException("Could not convert result object ["+obj+"] to int");
@ -311,7 +311,9 @@ public class MockServletContext implements ServletContext {
@@ -311,7 +311,9 @@ public class MockServletContext implements ServletContext {
returnresourcePaths;
}
catch(IOExceptionex){
logger.warn("Couldn't get resource paths for "+resource,ex);
if(logger.isWarnEnabled()){
logger.warn("Could not get resource paths for "+resource,ex);
}
returnnull;
}
}
@ -330,7 +332,9 @@ public class MockServletContext implements ServletContext {
@@ -330,7 +332,9 @@ public class MockServletContext implements ServletContext {
throwex;
}
catch(IOExceptionex){
logger.warn("Couldn't get URL for "+resource,ex);
if(logger.isWarnEnabled()){
logger.warn("Could not get URL for "+resource,ex);
}
returnnull;
}
}
@ -346,7 +350,9 @@ public class MockServletContext implements ServletContext {
@@ -346,7 +350,9 @@ public class MockServletContext implements ServletContext {
returnresource.getInputStream();
}
catch(IOExceptionex){
logger.warn("Couldn't open InputStream for "+resource,ex);
if(logger.isWarnEnabled()){
logger.warn("Could not open InputStream for "+resource,ex);
}
returnnull;
}
}
@ -414,8 +420,8 @@ public class MockServletContext implements ServletContext {
@@ -414,8 +420,8 @@ public class MockServletContext implements ServletContext {
@ -457,7 +463,9 @@ public class MockServletContext implements ServletContext {
@@ -457,7 +463,9 @@ public class MockServletContext implements ServletContext {
returnresource.getFile().getAbsolutePath();
}
catch(IOExceptionex){
logger.warn("Couldn't determine real path of resource "+resource,ex);
if(logger.isWarnEnabled()){
logger.warn("Could not determine real path of resource "+resource,ex);
@ -129,14 +130,17 @@ public class MockServletContext implements ServletContext {
@@ -129,14 +130,17 @@ public class MockServletContext implements ServletContext {
@ -165,7 +169,7 @@ public class MockServletContext implements ServletContext {
@@ -165,7 +169,7 @@ public class MockServletContext implements ServletContext {
@ -178,7 +182,7 @@ public class MockServletContext implements ServletContext {
@@ -178,7 +182,7 @@ public class MockServletContext implements ServletContext {
@ -262,6 +266,7 @@ public class MockServletContext implements ServletContext {
@@ -262,6 +266,7 @@ public class MockServletContext implements ServletContext {
@ -285,6 +290,7 @@ public class MockServletContext implements ServletContext {
@@ -285,6 +290,7 @@ public class MockServletContext implements ServletContext {
@ -305,12 +311,15 @@ public class MockServletContext implements ServletContext {
@@ -305,12 +311,15 @@ public class MockServletContext implements ServletContext {
returnresourcePaths;
}
catch(IOExceptionex){
logger.warn("Couldn't get resource paths for "+resource,ex);
if(logger.isWarnEnabled()){
logger.warn("Could not get resource paths for "+resource,ex);
@ -323,12 +332,15 @@ public class MockServletContext implements ServletContext {
@@ -323,12 +332,15 @@ public class MockServletContext implements ServletContext {
throwex;
}
catch(IOExceptionex){
logger.warn("Couldn't get URL for "+resource,ex);
if(logger.isWarnEnabled()){
logger.warn("Could not get URL for "+resource,ex);
@ -338,7 +350,9 @@ public class MockServletContext implements ServletContext {
@@ -338,7 +350,9 @@ public class MockServletContext implements ServletContext {
returnresource.getInputStream();
}
catch(IOExceptionex){
logger.warn("Couldn't open InputStream for "+resource,ex);
if(logger.isWarnEnabled()){
logger.warn("Could not open InputStream for "+resource,ex);
}
returnnull;
}
}
@ -406,8 +420,9 @@ public class MockServletContext implements ServletContext {
@@ -406,8 +420,9 @@ public class MockServletContext implements ServletContext {
@ -441,13 +456,16 @@ public class MockServletContext implements ServletContext {
@@ -441,13 +456,16 @@ public class MockServletContext implements ServletContext {
logger.warn("Couldn't determine real path of resource "+resource,ex);
if(logger.isWarnEnabled()){
logger.warn("Could not determine real path of resource "+resource,ex);
}
returnnull;
}
}
@ -484,6 +502,7 @@ public class MockServletContext implements ServletContext {
@@ -484,6 +502,7 @@ public class MockServletContext implements ServletContext {
}
@Override
@Nullable
publicObjectgetAttribute(Stringname){
Assert.notNull(name,"Attribute name must not be null");
returnthis.attributes.get(name);
@ -495,7 +514,7 @@ public class MockServletContext implements ServletContext {
@@ -495,7 +514,7 @@ public class MockServletContext implements ServletContext {
Assert.notNull(name,"Attribute name must not be null");
if(value!=null){
this.attributes.put(name,value);
@ -521,6 +540,7 @@ public class MockServletContext implements ServletContext {
@@ -521,6 +540,7 @@ public class MockServletContext implements ServletContext {
}
@Override
@Nullable
publicClassLoadergetClassLoader(){
returnClassUtils.getDefaultClassLoader();
}
@ -630,6 +650,7 @@ public class MockServletContext implements ServletContext {
@@ -630,6 +650,7 @@ public class MockServletContext implements ServletContext {
@ -668,6 +689,7 @@ public class MockServletContext implements ServletContext {
@@ -668,6 +689,7 @@ public class MockServletContext implements ServletContext {