1 Commits
Author SHA1 Message Date
Pablo Fernandez b2147de2e5 Removed last isEmpty for < 1.6 compatibility 2010-09-15 10:58:52 -03:00
2 changed files with 2 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
<groupId>org.scribe</groupId>
<artifactId>scribe</artifactId>
<packaging>jar</packaging>
<version>1.0.1</version>
<version>1.0.2</version>
<name>OAuth Library</name>
<dependencies>
@@ -38,7 +38,7 @@ public class Preconditions
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)
{
throw new IllegalArgumentException(message);