Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
6575ca6f
Commit
6575ca6f
authored
May 10, 2016
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 1.3.x
parents
46407c67
7fb545d2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
JooqExceptionTranslator.java
...work/boot/autoconfigure/jooq/JooqExceptionTranslator.java
+3
-2
JooqExceptionTranslatorTests.java
...boot/autoconfigure/jooq/JooqExceptionTranslatorTests.java
+0
-1
TypeElementMembers.java
...ework/boot/configurationprocessor/TypeElementMembers.java
+5
-6
InvalidAccessorProperties.java
...nfigurationsample/specific/InvalidAccessorProperties.java
+1
-0
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jooq/JooqExceptionTranslator.java
View file @
6575ca6f
...
...
@@ -57,8 +57,9 @@ class JooqExceptionTranslator extends DefaultExecuteListener {
private
SQLExceptionTranslator
getTranslator
(
ExecuteContext
context
)
{
SQLDialect
dialect
=
context
.
configuration
().
dialect
();
if
(
dialect
!=
null
)
{
return
new
SQLErrorCodeSQLExceptionTranslator
(
dialect
.
thirdParty
().
springDbName
());
if
(
dialect
!=
null
&&
dialect
.
thirdParty
()
!=
null
)
{
return
new
SQLErrorCodeSQLExceptionTranslator
(
dialect
.
thirdParty
().
springDbName
());
}
return
new
SQLStateSQLExceptionTranslator
();
}
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jooq/JooqExceptionTranslatorTests.java
View file @
6575ca6f
...
...
@@ -39,7 +39,6 @@ import static org.mockito.Mockito.verify;
*
* @author Andy Wilkinson
*/
@RunWith
(
Parameterized
.
class
)
public
class
JooqExceptionTranslatorTests
{
...
...
spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeElementMembers.java
View file @
6575ca6f
...
...
@@ -118,15 +118,14 @@ class TypeElementMembers {
private
boolean
isSetter
(
ExecutableElement
method
)
{
final
String
name
=
method
.
getSimpleName
().
toString
();
return
(
name
.
startsWith
(
"set"
)
&&
name
.
length
()
>
3
)
&&
method
.
getParameters
().
size
()
==
1
&&
(
isSetterReturnType
(
method
));
return
(
name
.
startsWith
(
"set"
)
&&
name
.
length
()
>
3
&&
method
.
getParameters
().
size
()
==
1
&&
isSetterReturnType
(
method
));
}
private
boolean
isSetterReturnType
(
ExecutableElement
method
)
{
return
(
TypeKind
.
VOID
==
method
.
getReturnType
().
getKind
()
||
this
.
env
.
getTypeUtils
().
isSameType
(
method
.
getEnclosingElement
().
asType
(),
method
.
getReturnType
()
));
TypeMirror
returnType
=
method
.
getReturnType
();
return
(
TypeKind
.
VOID
==
returnType
.
getKind
()
||
this
.
env
.
getTypeUtils
()
.
isSameType
(
method
.
getEnclosingElement
().
asType
(),
returnType
));
}
private
String
getAccessorName
(
String
methodName
)
{
...
...
spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/specific/InvalidAccessorProperties.java
View file @
6575ca6f
...
...
@@ -27,6 +27,7 @@ import org.springframework.boot.configurationsample.ConfigurationProperties;
public
class
InvalidAccessorProperties
{
private
String
name
;
private
boolean
flag
;
public
void
set
(
String
name
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment