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
542c3b7c
Commit
542c3b7c
authored
Jan 24, 2018
by
dreis2211
Committed by
Phillip Webb
Jan 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove usage of Vector collection
Closes gh-11759
parent
3bd940ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
MappingsEndpointTests.java
...work/boot/actuate/web/mappings/MappingsEndpointTests.java
+2
-3
HibernateJpaAutoConfigurationTests.java
...configure/orm/jpa/HibernateJpaAutoConfigurationTests.java
+3
-3
No files found.
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/web/mappings/MappingsEndpointTests.java
View file @
542c3b7c
...
@@ -20,7 +20,6 @@ import java.util.Collection;
...
@@ -20,7 +20,6 @@ import java.util.Collection;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Vector
;
import
java.util.function.Supplier
;
import
java.util.function.Supplier
;
import
javax.servlet.FilterRegistration
;
import
javax.servlet.FilterRegistration
;
...
@@ -75,9 +74,9 @@ public class MappingsEndpointTests {
...
@@ -75,9 +74,9 @@ public class MappingsEndpointTests {
public
void
servletWebMappings
()
{
public
void
servletWebMappings
()
{
ServletContext
servletContext
=
mock
(
ServletContext
.
class
);
ServletContext
servletContext
=
mock
(
ServletContext
.
class
);
given
(
servletContext
.
getInitParameterNames
())
given
(
servletContext
.
getInitParameterNames
())
.
willReturn
(
new
Vector
<
String
>().
elements
());
.
willReturn
(
Collections
.
emptyEnumeration
());
given
(
servletContext
.
getAttributeNames
())
given
(
servletContext
.
getAttributeNames
())
.
willReturn
(
new
Vector
<
String
>().
elements
());
.
willReturn
(
Collections
.
emptyEnumeration
());
FilterRegistration
filterRegistration
=
mock
(
FilterRegistration
.
class
);
FilterRegistration
filterRegistration
=
mock
(
FilterRegistration
.
class
);
given
((
Map
<
String
,
FilterRegistration
>)
servletContext
.
getFilterRegistrations
())
given
((
Map
<
String
,
FilterRegistration
>)
servletContext
.
getFilterRegistrations
())
.
willReturn
(
Collections
.
singletonMap
(
"testFilter"
,
filterRegistration
));
.
willReturn
(
Collections
.
singletonMap
(
"testFilter"
,
filterRegistration
));
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfigurationTests.java
View file @
542c3b7c
/*
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
8
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -20,10 +20,10 @@ import java.io.IOException;
...
@@ -20,10 +20,10 @@ import java.io.IOException;
import
java.net.URL
;
import
java.net.URL
;
import
java.net.URLClassLoader
;
import
java.net.URLClassLoader
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Collections
;
import
java.util.Enumeration
;
import
java.util.Enumeration
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Vector
;
import
javax.persistence.EntityManager
;
import
javax.persistence.EntityManager
;
import
javax.persistence.EntityManagerFactory
;
import
javax.persistence.EntityManagerFactory
;
...
@@ -336,7 +336,7 @@ public class HibernateJpaAutoConfigurationTests
...
@@ -336,7 +336,7 @@ public class HibernateJpaAutoConfigurationTests
@Override
@Override
public
Enumeration
<
URL
>
getResources
(
String
name
)
throws
IOException
{
public
Enumeration
<
URL
>
getResources
(
String
name
)
throws
IOException
{
if
(
HIDDEN_RESOURCES
.
contains
(
name
))
{
if
(
HIDDEN_RESOURCES
.
contains
(
name
))
{
return
new
Vector
<
URL
>().
elements
();
return
Collections
.
emptyEnumeration
();
}
}
return
super
.
getResources
(
name
);
return
super
.
getResources
(
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