Removed last isEmpty for < 1.6 compatibility
This commit is contained in:
1 parent
129d368d92
commit
b2147de2e5
2 files changed
+2
-2
No files matched your search
@@ -4,7 +4,7 @@
|
|||||||
<groupId>org.scribe</groupId>
|
<groupId>org.scribe</groupId>
|
||||||
<artifactId>scribe</artifactId>
|
<artifactId>scribe</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.0.1</version>
|
<version>1.0.2</version>
|
||||||
<name>OAuth Library</name>
|
<name>OAuth Library</name>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public class Preconditions
|
|||||||
|
|
||||||
private static void check(boolean requirements, String error)
|
private static void check(boolean requirements, String error)
|
||||||
{
|
{
|
||||||
String message = (error == null || error.trim().isEmpty()) ? DEFAULT_MESSAGE : error;
|
String message = (error == null || error.trim().length() <= 0) ? DEFAULT_MESSAGE : error;
|
||||||
if (!requirements)
|
if (!requirements)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException(message);
|
throw new IllegalArgumentException(message);
|
||||||
|
|||||||
Reference in new issue
Block a user