Skip to content

Commit

Permalink
Apply eclipse formatting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
philwebb committed Sep 4, 2014
1 parent 990213b commit eaa3bd0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

/**
* Tests for {@link MongoHealthIndicator}.
*
*
* @author Christian Dupuis
*/
public class MongoHealthIndicatorTests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,15 @@ private Set<GradleLibrary> getLibraries(String configurationName, LibraryScope s
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) {
Expand All @@ -134,7 +135,8 @@ else if (dependency instanceof ProjectDependency) {
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;
}
Expand Down Expand Up @@ -191,7 +193,7 @@ public void setIncludeGroupName(boolean includeGroupName) {
@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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -34,6 +29,11 @@
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}.
*
Expand Down

0 comments on commit eaa3bd0

Please sign in to comment.