-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add check and test for pointonline list less than 2 (#689)
- Loading branch information
Cameron Mace
authored
Dec 13, 2017
1 parent
98c842b
commit a8b22cb
Showing
4 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
services-core/src/main/java/com/mapbox/core/internal/Preconditions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.mapbox.core.internal; | ||
|
||
import static android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP; | ||
|
||
import android.support.annotation.RestrictTo; | ||
|
||
@RestrictTo(LIBRARY_GROUP) | ||
public final class Preconditions { | ||
public static void checkNotNull(Object value, String message) { | ||
if (value == null) { | ||
throw new NullPointerException(message); | ||
} | ||
} | ||
|
||
private Preconditions() { | ||
throw new AssertionError("No instances."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters