Browse Source

Apply eclipse formatting rules

pull/1588/head
Phillip Webb 11 years ago
parent
commit
eaa3bd040d
  1. 2
      spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/MongoHealthIndicatorTests.java
  2. 12
      spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/repackage/ProjectLibraries.java
  3. 10
      spring-boot/src/test/java/org/springframework/boot/bind/RelaxedPropertyResolverTests.java

2
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/MongoHealthIndicatorTests.java

@ -36,7 +36,7 @@ import static org.junit.Assert.assertTrue; @@ -36,7 +36,7 @@ import static org.junit.Assert.assertTrue;
/**
* Tests for {@link MongoHealthIndicator}.
*
*
* @author Christian Dupuis
*/
public class MongoHealthIndicatorTests {

12
spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/repackage/ProjectLibraries.java

@ -115,14 +115,15 @@ class ProjectLibraries implements Libraries { @@ -115,14 +115,15 @@ class ProjectLibraries implements Libraries {
return libraries;
}
private Set<GradleLibrary> getLibrariesForFileDependencies(Configuration configuration,
LibraryScope scope) {
private Set<GradleLibrary> getLibrariesForFileDependencies(
Configuration configuration, LibraryScope scope) {
Set<GradleLibrary> libraries = new LinkedHashSet<GradleLibrary>();
for (Dependency dependency : configuration.getIncoming().getDependencies()) {
if (dependency instanceof FileCollectionDependency) {
FileCollectionDependency fileDependency = (FileCollectionDependency) dependency;
for (File file : fileDependency.resolve()) {
libraries.add(new GradleLibrary(fileDependency.getGroup(), file, scope));
libraries.add(new GradleLibrary(fileDependency.getGroup(), file,
scope));
}
}
else if (dependency instanceof ProjectDependency) {
@ -134,7 +135,8 @@ class ProjectLibraries implements Libraries { @@ -134,7 +135,8 @@ class ProjectLibraries implements Libraries {
return libraries;
}
private Set<GradleLibrary> minus(Set<GradleLibrary> source, Set<GradleLibrary> toRemove) {
private Set<GradleLibrary> minus(Set<GradleLibrary> source,
Set<GradleLibrary> toRemove) {
if (source == null || toRemove == null) {
return source;
}
@ -191,7 +193,7 @@ class ProjectLibraries implements Libraries { @@ -191,7 +193,7 @@ class ProjectLibraries implements Libraries {
@Override
public String getName() {
String name = super.getName();
if(this.includeGroupName && this.group != null) {
if (this.includeGroupName && this.group != null) {
name = this.group + "-" + name;
}
return name;

10
spring-boot/src/test/java/org/springframework/boot/bind/RelaxedPropertyResolverTests.java

@ -16,11 +16,6 @@ @@ -16,11 +16,6 @@
package org.springframework.boot.bind;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Properties;
@ -34,6 +29,11 @@ import org.springframework.core.env.MutablePropertySources; @@ -34,6 +29,11 @@ import org.springframework.core.env.MutablePropertySources;
import org.springframework.core.env.PropertiesPropertySource;
import org.springframework.core.env.StandardEnvironment;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
/**
* Tests for {@link RelaxedPropertyResolver}.
*

Loading…
Cancel
Save