Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Update style.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrant committed Jun 23, 2019
1 parent 3d86d93 commit 3bd1a47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
package org.wikipedia.dataclient.mwapi;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.google.gson.annotations.SerializedName;

import org.apache.commons.lang3.StringUtils;

@SuppressWarnings("unused")
public class GeoSearchItem {

private String title;
@Nullable private String title;
@SerializedName("lat") private double latitude;
@SerializedName("lon") private double longitude;
@SerializedName("dist") private double distance;

@NonNull public String getTitle() {
return title;
return StringUtils.defaultString(title);
}

public double getLatitude() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/wikipedia/gallery/GalleryItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public String getDisplay() {
}
}

private static class StructuredData implements Serializable {
public static class StructuredData implements Serializable {
@Nullable private HashMap<String, String> captions;
}
}

0 comments on commit 3bd1a47

Please sign in to comment.