Skip to content

Commit 6de40c2

Browse files
javier-godoyngonzalezpazFC
authored andcommitted
style: apply code formatting
1 parent 0984fce commit 6de40c2

File tree

12 files changed

+391
-389
lines changed

12 files changed

+391
-389
lines changed

src/main/java/com/flowingcode/vaadin/addons/errorwindow/DefaultErrorWindowFactory.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -21,10 +21,9 @@
2121

2222
public class DefaultErrorWindowFactory implements ErrorWindowFactory {
2323

24-
@Override
25-
public void showError(ErrorDetails details) {
26-
ErrorWindow w = new ErrorWindow(details);
27-
w.open();
28-
}
29-
24+
@Override
25+
public void showError(ErrorDetails details) {
26+
ErrorWindow w = new ErrorWindow(details);
27+
w.open();
28+
}
3029
}

src/main/java/com/flowingcode/vaadin/addons/errorwindow/ErrorDetails.java

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -21,26 +21,28 @@
2121

2222
public class ErrorDetails {
2323

24-
private Throwable throwable;
25-
private String cause;
26-
27-
public ErrorDetails(Throwable throwable, String cause) {
28-
super();
29-
this.throwable = throwable;
30-
this.cause = cause;
31-
}
32-
33-
public Throwable getThrowable() {
34-
return throwable;
35-
}
36-
public void setThrowable(Throwable throwable) {
37-
this.throwable = throwable;
38-
}
39-
public String getCause() {
40-
return cause;
41-
}
42-
public void setCause(String cause) {
43-
this.cause = cause;
44-
}
24+
private Throwable throwable;
25+
private String cause;
4526

27+
public ErrorDetails(Throwable throwable, String cause) {
28+
super();
29+
this.throwable = throwable;
30+
this.cause = cause;
31+
}
32+
33+
public Throwable getThrowable() {
34+
return throwable;
35+
}
36+
37+
public void setThrowable(Throwable throwable) {
38+
this.throwable = throwable;
39+
}
40+
41+
public String getCause() {
42+
return cause;
43+
}
44+
45+
public void setCause(String cause) {
46+
this.cause = cause;
47+
}
4648
}

src/main/java/com/flowingcode/vaadin/addons/errorwindow/ErrorManager.java

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -21,27 +21,26 @@
2121

2222
public final class ErrorManager {
2323

24-
private static ErrorWindowFactory errorWindowFactory = new DefaultErrorWindowFactory();
24+
private static ErrorWindowFactory errorWindowFactory = new DefaultErrorWindowFactory();
2525

26-
private ErrorManager() {
27-
throw new IllegalStateException("Utility class not meant to be instantiated");
28-
}
26+
private ErrorManager() {
27+
throw new IllegalStateException("Utility class not meant to be instantiated");
28+
}
2929

30-
public static void showError(Throwable throwable) {
31-
showError(throwable, throwable.getLocalizedMessage());
32-
}
30+
public static void showError(Throwable throwable) {
31+
showError(throwable, throwable.getLocalizedMessage());
32+
}
3333

34-
public static void showError(Throwable throwable, String cause) {
35-
ErrorDetails details = new ErrorDetails(throwable, cause);
36-
errorWindowFactory.showError(details);
37-
}
34+
public static void showError(Throwable throwable, String cause) {
35+
ErrorDetails details = new ErrorDetails(throwable, cause);
36+
errorWindowFactory.showError(details);
37+
}
3838

39-
public static void setErrorWindowFactory(ErrorWindowFactory errorWindowFactory) {
40-
ErrorManager.errorWindowFactory = errorWindowFactory;
41-
}
42-
43-
public static ErrorWindowFactory getErrorWindowFactory() {
44-
return errorWindowFactory;
45-
}
39+
public static void setErrorWindowFactory(ErrorWindowFactory errorWindowFactory) {
40+
ErrorManager.errorWindowFactory = errorWindowFactory;
41+
}
4642

43+
public static ErrorWindowFactory getErrorWindowFactory() {
44+
return errorWindowFactory;
45+
}
4746
}

0 commit comments

Comments
 (0)