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
59122358
Commit
59122358
authored
Jun 16, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up and format code
parent
5d69318e
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
32 additions
and
32 deletions
+32
-32
ClassLoaderFilesResourcePatternResolver.java
...ools/restart/ClassLoaderFilesResourcePatternResolver.java
+6
-6
ClassLoaderFilesResourcePatternResolverTests.java
...restart/ClassLoaderFilesResourcePatternResolverTests.java
+1
-2
Author.java
...mple-jooq/gensrc/main/java/sample/jooq/domain/Author.java
+1
-0
Book.java
...sample-jooq/gensrc/main/java/sample/jooq/domain/Book.java
+1
-0
BookStore.java
...e-jooq/gensrc/main/java/sample/jooq/domain/BookStore.java
+1
-0
BookToBookStore.java
.../gensrc/main/java/sample/jooq/domain/BookToBookStore.java
+1
-0
Language.java
...le-jooq/gensrc/main/java/sample/jooq/domain/Language.java
+1
-0
SampleWebSocketsApplicationTests.java
...s/websocket/jetty93/SampleWebSocketsApplicationTests.java
+0
-1
SnakeTimerTests.java
...java/samples/websocket/jetty93/snake/SnakeTimerTests.java
+1
-3
TestDatabaseAutoConfigurationTests.java
...utoconfigure/jdbc/TestDatabaseAutoConfigurationTests.java
+2
-1
TypeElementMembers.java
...ework/boot/configurationprocessor/TypeElementMembers.java
+2
-2
ItemDeprecation.java
...boot/configurationprocessor/metadata/ItemDeprecation.java
+2
-2
ConfigurationMetadataAnnotationProcessorTests.java
...cessor/ConfigurationMetadataAnnotationProcessorTests.java
+8
-10
SpringBootPluginExtension.java
...pringframework/boot/gradle/SpringBootPluginExtension.java
+1
-2
JsonComponentModule.java
...org/springframework/boot/jackson/JsonComponentModule.java
+2
-2
JsonComponentModuleTests.java
...pringframework/boot/jackson/JsonComponentModuleTests.java
+2
-1
No files found.
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/ClassLoaderFilesResourcePatternResolver.java
View file @
59122358
...
...
@@ -216,8 +216,8 @@ final class ClassLoaderFilesResourcePatternResolver implements ResourcePatternRe
ApplicationContext
applicationContext
)
{
DefaultResourceLoader
resourceLoader
=
new
DefaultResourceLoader
();
if
(
applicationContext
instanceof
DefaultResourceLoader
)
{
Collection
<
ProtocolResolver
>
protocolResolvers
=
((
DefaultResourceLoader
)
applicationContext
)
.
getProtocolResolvers
();
Collection
<
ProtocolResolver
>
protocolResolvers
=
((
DefaultResourceLoader
)
applicationContext
)
.
getProtocolResolvers
();
for
(
ProtocolResolver
protocolResolver
:
protocolResolvers
)
{
resourceLoader
.
addProtocolResolver
(
protocolResolver
);
}
...
...
@@ -247,11 +247,11 @@ final class ClassLoaderFilesResourcePatternResolver implements ResourcePatternRe
private
ResourceLoader
createResourceLoader
(
WebApplicationContext
applicationContext
)
{
WebApplicationContextResourceLoader
resourceLoader
=
new
WebApplicationContextResourceLoader
(
applicationContext
);
WebApplicationContextResourceLoader
resourceLoader
=
new
WebApplicationContextResourceLoader
(
applicationContext
);
if
(
applicationContext
instanceof
DefaultResourceLoader
)
{
Collection
<
ProtocolResolver
>
protocolResolvers
=
((
DefaultResourceLoader
)
applicationContext
)
.
getProtocolResolvers
();
Collection
<
ProtocolResolver
>
protocolResolvers
=
((
DefaultResourceLoader
)
applicationContext
)
.
getProtocolResolvers
();
for
(
ProtocolResolver
protocolResolver
:
protocolResolvers
)
{
resourceLoader
.
addProtocolResolver
(
protocolResolver
);
}
...
...
spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/ClassLoaderFilesResourcePatternResolverTests.java
View file @
59122358
...
...
@@ -168,8 +168,7 @@ public class ClassLoaderFilesResourcePatternResolverTests {
private
ProtocolResolver
mockProtocolResolver
(
String
path
,
Resource
resource
)
{
ProtocolResolver
resolver
=
mock
(
ProtocolResolver
.
class
);
given
(
resolver
.
resolve
(
eq
(
path
),
any
(
ResourceLoader
.
class
)))
.
willReturn
(
resource
);
given
(
resolver
.
resolve
(
eq
(
path
),
any
(
ResourceLoader
.
class
))).
willReturn
(
resource
);
return
resolver
;
}
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/Author.java
View file @
59122358
...
...
@@ -133,6 +133,7 @@ public class Author extends TableImpl<Record> {
/**
* Rename this table
*/
@Override
public
Author
rename
(
String
name
)
{
return
new
Author
(
name
,
null
);
}
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/Book.java
View file @
59122358
...
...
@@ -136,6 +136,7 @@ public class Book extends TableImpl<Record> {
/**
* Rename this table
*/
@Override
public
Book
rename
(
String
name
)
{
return
new
Book
(
name
,
null
);
}
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/BookStore.java
View file @
59122358
...
...
@@ -94,6 +94,7 @@ public class BookStore extends TableImpl<Record> {
/**
* Rename this table
*/
@Override
public
BookStore
rename
(
String
name
)
{
return
new
BookStore
(
name
,
null
);
}
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/BookToBookStore.java
View file @
59122358
...
...
@@ -124,6 +124,7 @@ public class BookToBookStore extends TableImpl<Record> {
/**
* Rename this table
*/
@Override
public
BookToBookStore
rename
(
String
name
)
{
return
new
BookToBookStore
(
name
,
null
);
}
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/Language.java
View file @
59122358
...
...
@@ -114,6 +114,7 @@ public class Language extends TableImpl<Record> {
/**
* Rename this table
*/
@Override
public
Language
rename
(
String
name
)
{
return
new
Language
(
name
,
null
);
}
...
...
spring-boot-samples/spring-boot-sample-websocket-jetty93/src/test/java/samples/websocket/jetty93/SampleWebSocketsApplicationTests.java
View file @
59122358
...
...
@@ -24,7 +24,6 @@ import org.apache.commons.logging.Log;
import
org.apache.commons.logging.LogFactory
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
samples.websocket.jetty93.SampleJetty93WebSocketsApplication
;
import
samples.websocket.jetty93.client.GreetingService
;
import
samples.websocket.jetty93.client.SimpleClientWebSocketHandler
;
import
samples.websocket.jetty93.client.SimpleGreetingService
;
...
...
spring-boot-samples/spring-boot-sample-websocket-jetty93/src/test/java/samples/websocket/jetty93/snake/SnakeTimerTests.java
View file @
59122358
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
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.
...
...
@@ -19,8 +19,6 @@ package samples.websocket.jetty93.snake;
import
java.io.IOException
;
import
org.junit.Test
;
import
samples.websocket.jetty93.snake.Snake
;
import
samples.websocket.jetty93.snake.SnakeTimer
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
mockito
.
BDDMockito
.
willThrow
;
...
...
spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/jdbc/TestDatabaseAutoConfigurationTests.java
View file @
59122358
...
...
@@ -76,7 +76,8 @@ public class TestDatabaseAutoConfigurationTests {
this
.
context
=
doLoad
(
config
,
environment
);
}
private
ConfigurableApplicationContext
doLoad
(
Class
<?>
config
,
String
...
environment
)
{
private
ConfigurableApplicationContext
doLoad
(
Class
<?>
config
,
String
...
environment
)
{
AnnotationConfigApplicationContext
ctx
=
new
AnnotationConfigApplicationContext
();
if
(
config
!=
null
)
{
ctx
.
register
(
config
);
...
...
spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeElementMembers.java
View file @
59122358
...
...
@@ -179,8 +179,8 @@ class TypeElementMembers {
return
candidate
;
}
TypeMirror
alternative
=
this
.
typeUtils
.
getWrapperOrPrimitiveFor
(
type
);
if
(
alternative
!=
null
&&
this
.
env
.
getTypeUtils
().
isSameType
(
returnType
,
alternative
))
{
if
(
alternative
!=
null
&&
this
.
env
.
getTypeUtils
().
isSameType
(
returnType
,
alternative
))
{
return
candidate
;
}
}
...
...
spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ItemDeprecation.java
View file @
59122358
...
...
@@ -71,8 +71,8 @@ public class ItemDeprecation {
@Override
public
String
toString
()
{
return
"ItemDeprecation{"
+
"reason='"
+
this
.
reason
+
'\''
+
", "
+
"replacement='"
+
this
.
replacement
+
'\''
+
", "
+
"level='"
+
this
.
level
+
'\''
+
'}'
;
+
"replacement='"
+
this
.
replacement
+
'\''
+
", "
+
"level='"
+
this
.
level
+
'\''
+
'}'
;
}
@Override
...
...
spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessorTests.java
View file @
59122358
...
...
@@ -490,8 +490,8 @@ public class ConfigurationMetadataAnnotationProcessorTests {
@Test
public
void
lombokInnerClassWithGetterProperties
()
throws
IOException
{
ConfigurationMetadata
metadata
=
compile
(
LombokInnerClassWithGetterProperties
.
class
);
ConfigurationMetadata
metadata
=
compile
(
LombokInnerClassWithGetterProperties
.
class
);
assertThat
(
metadata
).
has
(
Metadata
.
withGroup
(
"config"
)
.
fromSource
(
LombokInnerClassWithGetterProperties
.
class
));
assertThat
(
metadata
).
has
(
Metadata
.
withGroup
(
"config.first"
)
...
...
@@ -541,16 +541,14 @@ public class ConfigurationMetadataAnnotationProcessorTests {
@Test
public
void
mergeExistingPropertyDeprecation
()
throws
Exception
{
ItemMetadata
property
=
ItemMetadata
.
newProperty
(
"simple"
,
"comparator"
,
null
,
null
,
null
,
null
,
null
,
new
ItemDeprecation
(
"Don't use this."
,
"simple.complex-comparator"
,
"error"
));
null
,
null
,
null
,
null
,
new
ItemDeprecation
(
"Don't use this."
,
"simple.complex-comparator"
,
"error"
));
writeAdditionalMetadata
(
property
);
ConfigurationMetadata
metadata
=
compile
(
SimpleProperties
.
class
);
assertThat
(
metadata
)
.
has
(
Metadata
.
withProperty
(
"simple.comparator"
,
"java.util.Comparator<?>"
)
.
fromSource
(
SimpleProperties
.
class
)
.
withDeprecation
(
"Don't use this."
,
"simple.complex-comparator"
,
"error"
));
.
fromSource
(
SimpleProperties
.
class
).
withDeprecation
(
"Don't use this."
,
"simple.complex-comparator"
,
"error"
));
assertThat
(
metadata
.
getItems
()).
hasSize
(
4
);
}
...
...
@@ -576,8 +574,8 @@ public class ConfigurationMetadataAnnotationProcessorTests {
ConfigurationMetadata
metadata
=
compile
(
DeprecatedSingleProperty
.
class
);
assertThat
(
metadata
).
has
(
Metadata
.
withProperty
(
"singledeprecated.name"
,
String
.
class
.
getName
())
.
fromSource
(
DeprecatedSingleProperty
.
class
)
.
withDeprecation
(
"renamed"
,
"singledeprecated.new-name"
,
"error"
));
.
fromSource
(
DeprecatedSingleProperty
.
class
)
.
withDeprecation
(
"renamed"
,
"singledeprecated.new-name"
,
"error"
));
assertThat
(
metadata
.
getItems
()).
hasSize
(
3
);
}
...
...
spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/SpringBootPluginExtension.java
View file @
59122358
...
...
@@ -320,8 +320,7 @@ public class SpringBootPluginExtension {
* Module Layout.
* @deprecated as of 1.5 in favor of a custom {@link LayoutFactory}
*/
@Deprecated
MODULE
(
new
Layouts
.
Module
()),
@Deprecated
MODULE
(
new
Layouts
.
Module
()),
/**
* No layout.
...
...
spring-boot/src/main/java/org/springframework/boot/jackson/JsonComponentModule.java
View file @
59122358
...
...
@@ -79,8 +79,8 @@ public class JsonComponentModule extends SimpleModule implements BeanFactoryAwar
addDeserializerWithDeducedType
((
JsonDeserializer
<?>)
bean
);
}
for
(
Class
<?>
innerClass
:
bean
.
getClass
().
getDeclaredClasses
())
{
if
(!
Modifier
.
isAbstract
(
innerClass
.
getModifiers
())
&&
(
JsonSerializer
.
class
.
isAssignableFrom
(
innerClass
)
if
(!
Modifier
.
isAbstract
(
innerClass
.
getModifiers
())
&&
(
JsonSerializer
.
class
.
isAssignableFrom
(
innerClass
)
||
JsonDeserializer
.
class
.
isAssignableFrom
(
innerClass
)))
{
try
{
addJsonBean
(
innerClass
.
newInstance
());
...
...
spring-boot/src/test/java/org/springframework/boot/jackson/JsonComponentModuleTests.java
View file @
59122358
...
...
@@ -109,7 +109,8 @@ public class JsonComponentModuleTests {
@JsonComponent
static
class
ComponentWithInnerAbstractClass
{
private
static
abstract
class
AbstractSerializer
extends
NameAndAgeJsonComponent
.
Serializer
{
private
static
abstract
class
AbstractSerializer
extends
NameAndAgeJsonComponent
.
Serializer
{
}
...
...
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