Reformat code use Eclipse Mars

This commit is contained in:
Phillip Webb
2015-10-07 23:32:31 -07:00
parent ba7c1fda72
commit 6ab376e2e8
652 changed files with 4151 additions and 3919 deletions

View File

@@ -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)) {
};
}

View File

@@ -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;
}

View File

@@ -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);
}

View File

@@ -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));
}

View File

@@ -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