Reformat code use Eclipse Mars
This commit is contained in:
@@ -105,8 +105,8 @@ public abstract class ManagedDependencies implements Dependencies {
|
||||
*/
|
||||
public static ManagedDependencies get(
|
||||
Collection<Dependencies> versionManagedDependencies) {
|
||||
return new ManagedDependencies(new ManagedDependenciesDelegate(
|
||||
versionManagedDependencies)) {
|
||||
return new ManagedDependencies(
|
||||
new ManagedDependenciesDelegate(versionManagedDependencies)) {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,8 @@ class ManagedDependenciesDelegate extends AbstractDependencies {
|
||||
* @param versionManagedDependencies a collection of {@link Dependencies} that take
|
||||
* precedence over the `spring-boot-dependencies`.
|
||||
*/
|
||||
public ManagedDependenciesDelegate(Collection<Dependencies> versionManagedDependencies) {
|
||||
public ManagedDependenciesDelegate(
|
||||
Collection<Dependencies> versionManagedDependencies) {
|
||||
this(getSpringBootDependencies(), versionManagedDependencies);
|
||||
}
|
||||
|
||||
@@ -57,7 +58,8 @@ class ManagedDependenciesDelegate extends AbstractDependencies {
|
||||
|
||||
private static Dependencies getSpringBootDependencies() {
|
||||
if (springBootDependencies == null) {
|
||||
springBootDependencies = new PomDependencies(getResource("effective-pom.xml"));
|
||||
springBootDependencies = new PomDependencies(
|
||||
getResource("effective-pom.xml"));
|
||||
}
|
||||
return springBootDependencies;
|
||||
}
|
||||
|
||||
@@ -91,8 +91,8 @@ public class PomDependencies extends AbstractDependencies {
|
||||
String groupId = getTextContent(element, "groupId");
|
||||
String artifactId = getTextContent(element, "artifactId");
|
||||
String version = getTextContent(element, "version");
|
||||
List<Exclusion> exclusions = createExclusions(element
|
||||
.getElementsByTagName("exclusions"));
|
||||
List<Exclusion> exclusions = createExclusions(
|
||||
element.getElementsByTagName("exclusions"));
|
||||
return new Dependency(groupId, artifactId, version, exclusions);
|
||||
}
|
||||
|
||||
|
||||
@@ -36,10 +36,10 @@ public class ManagedDependenciesDelegateTests {
|
||||
|
||||
@Before
|
||||
public void setup() throws Exception {
|
||||
PropertiesFileDependencies root = new PropertiesFileDependencies(getClass()
|
||||
.getResourceAsStream("external.properties"));
|
||||
PropertiesFileDependencies extra = new PropertiesFileDependencies(getClass()
|
||||
.getResourceAsStream("additional-external.properties"));
|
||||
PropertiesFileDependencies root = new PropertiesFileDependencies(
|
||||
getClass().getResourceAsStream("external.properties"));
|
||||
PropertiesFileDependencies extra = new PropertiesFileDependencies(
|
||||
getClass().getResourceAsStream("additional-external.properties"));
|
||||
this.dependencies = new ManagedDependenciesDelegate(root,
|
||||
Collections.<Dependencies>singleton(extra));
|
||||
}
|
||||
|
||||
@@ -36,8 +36,8 @@ public class PropertiesFileDependenciesTests {
|
||||
|
||||
@Before
|
||||
public void setup() throws Exception {
|
||||
this.dependencies = new PropertiesFileDependencies(getClass()
|
||||
.getResourceAsStream("external.properties"));
|
||||
this.dependencies = new PropertiesFileDependencies(
|
||||
getClass().getResourceAsStream("external.properties"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user