Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -80,7 +80,7 @@ public abstract class AbstractLobStreamingResultSetExtractor<T> implements Resul
|
||||
}
|
||||
}
|
||||
catch (IOException ex) {
|
||||
throw new LobRetrievalFailureException("Couldn't stream LOB content", ex);
|
||||
throw new LobRetrievalFailureException("Could not stream LOB content", ex);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -161,7 +161,7 @@ public class SqlFunction<T> extends MappingSqlQuery<T> {
|
||||
public int run(Object... parameters) {
|
||||
Object obj = super.findObject(parameters);
|
||||
if (!(obj instanceof Number)) {
|
||||
throw new TypeMismatchDataAccessException("Couldn't convert result object [" + obj + "] to int");
|
||||
throw new TypeMismatchDataAccessException("Could not convert result object [" + obj + "] to int");
|
||||
}
|
||||
return ((Number) obj).intValue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user