Fix whitespaces and indentation

This commit is contained in:
Benedikt Ritter 2015-05-07 20:49:52 +02:00
parent 3dbf1eedd9
commit 18b3437c15
2 changed files with 37 additions and 39 deletions

View File

@ -59,19 +59,17 @@
*/
public class SwitchDefaults implements TestRule {
@Override
public Statement apply(Statement stmt, Description description) {
SystemDefaults defaults = description.getAnnotation(SystemDefaults.class);
if(defaults == null) {
if (defaults == null) {
return stmt;
}
return applyTimeZone(defaults, applyLocale(defaults, stmt));
}
private Statement applyTimeZone(SystemDefaults defaults, final Statement stmt) {
if(defaults.timezone().isEmpty()) {
if (defaults.timezone().isEmpty()) {
return stmt;
}
@ -92,7 +90,7 @@ public void evaluate() throws Throwable {
}
private Statement applyLocale(SystemDefaults defaults, final Statement stmt) {
if(defaults.locale().isEmpty()) {
if (defaults.locale().isEmpty()) {
return stmt;
}