Skip to content

Commit b3a71d9

Browse files
committed
Make all builders final
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
1 parent 2a71671 commit b3a71d9

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

common/src/main/java/com/firebase/ui/common/Preconditions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Convenience class for checking argument conditions.
77
*/
88
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
9-
public class Preconditions {
9+
public final class Preconditions {
1010

1111
public static <T> T checkNotNull(T o) {
1212
if (o == null) throw new IllegalArgumentException("Argument cannot be null.");

database/src/main/java/com/firebase/ui/database/FirebaseListOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @see Builder
1818
*/
19-
public class FirebaseListOptions<T> {
19+
public final class FirebaseListOptions<T> {
2020

2121
private static final String ERR_SNAPSHOTS_SET = "Snapshot array already set. " +
2222
"Call only one of setSnapshotArray, setQuery, or setIndexedQuery.";
@@ -62,7 +62,7 @@ public LifecycleOwner getOwner() {
6262
*
6363
* @param <T> the model class for the {@link FirebaseListAdapter}.
6464
*/
65-
public static class Builder<T> {
65+
public static final class Builder<T> {
6666

6767
private ObservableSnapshotArray<T> mSnapshots;
6868
private @LayoutRes Integer mLayout;

database/src/main/java/com/firebase/ui/database/FirebaseRecyclerOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @see Builder
1717
*/
18-
public class FirebaseRecyclerOptions<T> {
18+
public final class FirebaseRecyclerOptions<T> {
1919

2020
private static final String ERR_SNAPSHOTS_SET = "Snapshot array already set. " +
2121
"Call only one of setSnapshotArray, setQuery, or setIndexedQuery.";
@@ -53,7 +53,7 @@ public LifecycleOwner getOwner() {
5353
*
5454
* @param <T> the model class for the {@link FirebaseRecyclerAdapter}.
5555
*/
56-
public static class Builder<T> {
56+
public static final class Builder<T> {
5757

5858
private ObservableSnapshotArray<T> mSnapshots;
5959
private LifecycleOwner mOwner;

firestore/src/main/java/com/firebase/ui/firestore/FirestoreRecyclerOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @see Builder
1717
*/
18-
public class FirestoreRecyclerOptions<T> {
18+
public final class FirestoreRecyclerOptions<T> {
1919

2020
private static final String ERR_SNAPSHOTS_SET = "Snapshot array already set. " +
2121
"Call only one of setSnapshotArray or setQuery";
@@ -52,7 +52,7 @@ public LifecycleOwner getOwner() {
5252
*
5353
* @param <T> the model class for the {@link FirestoreRecyclerAdapter}.
5454
*/
55-
public static class Builder<T> {
55+
public static final class Builder<T> {
5656

5757
private ObservableSnapshotArray<T> mSnapshots;
5858
private LifecycleOwner mOwner;

0 commit comments

Comments
 (0)