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
aae38db9
Commit
aae38db9
authored
Oct 07, 2015
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler warnings only shown in Eclipse Mars
parent
a0fc90a5
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
2 additions
and
22 deletions
+2
-22
MockCachingProvider.java
...boot/autoconfigure/cache/support/MockCachingProvider.java
+1
-1
BasicErrorControllerIntegrationTests.java
...toconfigure/web/BasicErrorControllerIntegrationTests.java
+1
-0
ManagementAddressActuatorApplicationTests.java
...e/actuator/ManagementAddressActuatorApplicationTests.java
+0
-5
SampleHypermediaJpaApplicationIntegrationTests.java
...a/jpa/SampleHypermediaJpaApplicationIntegrationTests.java
+0
-4
SampleWebSecureCustomApplication.java
...e/web/secure/custom/SampleWebSecureCustomApplication.java
+0
-4
SampleWebSecureCustomApplication.java
...ple/web/secure/jdbc/SampleWebSecureCustomApplication.java
+0
-3
SampleWebSecureApplication.java
...in/java/sample/web/secure/SampleWebSecureApplication.java
+0
-4
RandomAccessDataFile.java
...pringframework/boot/loader/data/RandomAccessDataFile.java
+0
-1
No files found.
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/support/MockCachingProvider.java
View file @
aae38db9
...
@@ -44,7 +44,7 @@ import static org.mockito.Mockito.mock;
...
@@ -44,7 +44,7 @@ import static org.mockito.Mockito.mock;
public
class
MockCachingProvider
implements
CachingProvider
{
public
class
MockCachingProvider
implements
CachingProvider
{
@Override
@Override
@SuppressWarnings
(
{
"rawtypes"
,
"unchecked"
}
)
@SuppressWarnings
(
"rawtypes"
)
public
CacheManager
getCacheManager
(
URI
uri
,
ClassLoader
classLoader
,
public
CacheManager
getCacheManager
(
URI
uri
,
ClassLoader
classLoader
,
Properties
properties
)
{
Properties
properties
)
{
CacheManager
cacheManager
=
mock
(
CacheManager
.
class
);
CacheManager
cacheManager
=
mock
(
CacheManager
.
class
);
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/BasicErrorControllerIntegrationTests.java
View file @
aae38db9
...
@@ -140,6 +140,7 @@ public class BasicErrorControllerIntegrationTests {
...
@@ -140,6 +140,7 @@ public class BasicErrorControllerIntegrationTests {
}
}
@Test
@Test
@SuppressWarnings
(
"rawtypes"
)
public
void
testErrorForAnnotatedNoReasonException
()
throws
Exception
{
public
void
testErrorForAnnotatedNoReasonException
()
throws
Exception
{
load
();
load
();
ResponseEntity
<
Map
>
entity
=
new
TestRestTemplate
()
ResponseEntity
<
Map
>
entity
=
new
TestRestTemplate
()
...
...
spring-boot-samples/spring-boot-sample-actuator/src/test/java/sample/actuator/ManagementAddressActuatorApplicationTests.java
View file @
aae38db9
...
@@ -20,9 +20,7 @@ import java.util.Map;
...
@@ -20,9 +20,7 @@ import java.util.Map;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.security.SecurityProperties
;
import
org.springframework.boot.test.IntegrationTest
;
import
org.springframework.boot.test.IntegrationTest
;
import
org.springframework.boot.test.SpringApplicationConfiguration
;
import
org.springframework.boot.test.SpringApplicationConfiguration
;
import
org.springframework.boot.test.TestRestTemplate
;
import
org.springframework.boot.test.TestRestTemplate
;
...
@@ -48,9 +46,6 @@ import static org.junit.Assert.assertTrue;
...
@@ -48,9 +46,6 @@ import static org.junit.Assert.assertTrue;
@DirtiesContext
@DirtiesContext
public
class
ManagementAddressActuatorApplicationTests
{
public
class
ManagementAddressActuatorApplicationTests
{
@Autowired
private
SecurityProperties
security
;
@Value
(
"${local.server.port}"
)
@Value
(
"${local.server.port}"
)
private
int
port
=
9010
;
private
int
port
=
9010
;
...
...
spring-boot-samples/spring-boot-sample-hypermedia-jpa/src/test/java/sample/hypermedia/jpa/SampleHypermediaJpaApplicationIntegrationTests.java
View file @
aae38db9
...
@@ -20,7 +20,6 @@ import org.junit.Before;
...
@@ -20,7 +20,6 @@ import org.junit.Before;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.endpoint.mvc.MvcEndpoints
;
import
org.springframework.boot.test.SpringApplicationConfiguration
;
import
org.springframework.boot.test.SpringApplicationConfiguration
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.test.annotation.DirtiesContext
;
import
org.springframework.test.annotation.DirtiesContext
;
...
@@ -45,9 +44,6 @@ public class SampleHypermediaJpaApplicationIntegrationTests {
...
@@ -45,9 +44,6 @@ public class SampleHypermediaJpaApplicationIntegrationTests {
@Autowired
@Autowired
private
WebApplicationContext
context
;
private
WebApplicationContext
context
;
@Autowired
private
MvcEndpoints
mvcEndpoints
;
private
MockMvc
mockMvc
;
private
MockMvc
mockMvc
;
@Before
@Before
...
...
spring-boot-samples/spring-boot-sample-web-secure-custom/src/main/java/sample/web/secure/custom/SampleWebSecureCustomApplication.java
View file @
aae38db9
...
@@ -19,7 +19,6 @@ package sample.web.secure.custom;
...
@@ -19,7 +19,6 @@ package sample.web.secure.custom;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Map
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.security.SecurityProperties
;
import
org.springframework.boot.autoconfigure.security.SecurityProperties
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
...
@@ -69,9 +68,6 @@ public class SampleWebSecureCustomApplication extends WebMvcConfigurerAdapter {
...
@@ -69,9 +68,6 @@ public class SampleWebSecureCustomApplication extends WebMvcConfigurerAdapter {
@Order
(
SecurityProperties
.
ACCESS_OVERRIDE_ORDER
)
@Order
(
SecurityProperties
.
ACCESS_OVERRIDE_ORDER
)
protected
static
class
ApplicationSecurity
extends
WebSecurityConfigurerAdapter
{
protected
static
class
ApplicationSecurity
extends
WebSecurityConfigurerAdapter
{
@Autowired
private
SecurityProperties
security
;
@Override
@Override
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
authorizeRequests
().
antMatchers
(
"/css/**"
).
permitAll
().
anyRequest
()
http
.
authorizeRequests
().
antMatchers
(
"/css/**"
).
permitAll
().
anyRequest
()
...
...
spring-boot-samples/spring-boot-sample-web-secure-jdbc/src/main/java/sample/web/secure/jdbc/SampleWebSecureCustomApplication.java
View file @
aae38db9
...
@@ -71,9 +71,6 @@ public class SampleWebSecureCustomApplication extends WebMvcConfigurerAdapter {
...
@@ -71,9 +71,6 @@ public class SampleWebSecureCustomApplication extends WebMvcConfigurerAdapter {
@Order
(
SecurityProperties
.
ACCESS_OVERRIDE_ORDER
)
@Order
(
SecurityProperties
.
ACCESS_OVERRIDE_ORDER
)
protected
static
class
ApplicationSecurity
extends
WebSecurityConfigurerAdapter
{
protected
static
class
ApplicationSecurity
extends
WebSecurityConfigurerAdapter
{
@Autowired
private
SecurityProperties
security
;
@Autowired
@Autowired
private
DataSource
dataSource
;
private
DataSource
dataSource
;
...
...
spring-boot-samples/spring-boot-sample-web-secure/src/main/java/sample/web/secure/SampleWebSecureApplication.java
View file @
aae38db9
...
@@ -19,7 +19,6 @@ package sample.web.secure;
...
@@ -19,7 +19,6 @@ package sample.web.secure;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Map
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.security.SecurityProperties
;
import
org.springframework.boot.autoconfigure.security.SecurityProperties
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
...
@@ -65,9 +64,6 @@ public class SampleWebSecureApplication extends WebMvcConfigurerAdapter {
...
@@ -65,9 +64,6 @@ public class SampleWebSecureApplication extends WebMvcConfigurerAdapter {
@Order
(
SecurityProperties
.
ACCESS_OVERRIDE_ORDER
)
@Order
(
SecurityProperties
.
ACCESS_OVERRIDE_ORDER
)
protected
static
class
ApplicationSecurity
extends
WebSecurityConfigurerAdapter
{
protected
static
class
ApplicationSecurity
extends
WebSecurityConfigurerAdapter
{
@Autowired
private
SecurityProperties
security
;
@Override
@Override
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
authorizeRequests
().
anyRequest
().
fullyAuthenticated
().
and
().
formLogin
()
http
.
authorizeRequests
().
anyRequest
().
fullyAuthenticated
().
and
().
formLogin
()
...
...
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/data/RandomAccessDataFile.java
View file @
aae38db9
...
@@ -243,7 +243,6 @@ public class RandomAccessDataFile implements RandomAccessData {
...
@@ -243,7 +243,6 @@ public class RandomAccessDataFile implements RandomAccessData {
this
.
files
=
new
ConcurrentLinkedQueue
<
RandomAccessFile
>();
this
.
files
=
new
ConcurrentLinkedQueue
<
RandomAccessFile
>();
}
}
@SuppressWarnings
(
"resource"
)
public
RandomAccessFile
acquire
()
throws
IOException
{
public
RandomAccessFile
acquire
()
throws
IOException
{
try
{
try
{
this
.
available
.
acquire
();
this
.
available
.
acquire
();
...
...
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