Fix whitespaces and indentation
This commit is contained in:
parent
3dbf1eedd9
commit
18b3437c15
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue