added spaces after if and inside the ternary operator

This commit is contained in:
Egor.Ushakov
2017-04-04 17:03:49 +03:00
parent e09e303e71
commit d706718b1b
15 changed files with 44 additions and 44 deletions

View File

@@ -7,7 +7,7 @@ import java.net.URL;
public class Loader {
public String getResource() {
URL resource = this.getClass().getClassLoader().getResource("pkg/res/resource.txt");
if(resource == null) {
if (resource == null) {
throw new RuntimeException("Resource missing");
} else {
try {