Fixes #171 Fix Lint errors/warnings: global, coding style: add missing spaces (#1955)

* Inserted missing spaces between `if` and `(` to improve code style, in line with GSG 4.6.2
This commit is contained in:
Paul Oranje 2018-11-04 15:37:28 +01:00 committed by Adam Jones
parent 0cf2299e49
commit 7b7d17a33b
69 changed files with 126 additions and 126 deletions

View file

@ -66,7 +66,7 @@ public class FileUtils {
*/
public static boolean checkIfDirectoryExists(String pathToCheck) {
File director = new File(pathToCheck);
if(director.exists() && director.isDirectory()) {
if (director.exists() && director.isDirectory()) {
return true;
} else {
return false;

View file

@ -44,4 +44,4 @@ public class StringSortingUtils {
double distanceBetweenStrings = new Levenshtein().distance(longer, shorter);
return (longerLength - distanceBetweenStrings) / (double) longerLength;
}
}
}

View file

@ -15,4 +15,4 @@ public class UriDeserializer implements JsonDeserializer<Uri> {
final JsonDeserializationContext context) throws JsonParseException {
return Uri.parse(src.getAsString());
}
}
}

View file

@ -15,7 +15,7 @@ public class ViewUtil {
public static final String SHOWCASE_VIEW_ID_3 = "SHOWCASE_VIEW_ID_3";
public static void showSnackbar(View view, int messageResourceId) {
if(view.getContext() == null) {
if (view.getContext() == null) {
return;
}
@ -32,7 +32,7 @@ public class ViewUtil {
public static boolean isPortrait(Context context) {
Display orientation = ((Activity)context).getWindowManager().getDefaultDisplay();
if(orientation.getWidth() < orientation.getHeight()){
if (orientation.getWidth() < orientation.getHeight()){
return true;
} else {
return false;