Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
use guava for null or empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Jul 19, 2013
1 parent f5a6a09 commit f56cfda
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -57,6 +57,7 @@
import org.zanata.service.TranslationFileService;

import com.google.common.base.Optional;
import static com.google.common.base.Strings.isNullOrEmpty;

@Slf4j
@Name("documentUploadUtil")
Expand Down Expand Up @@ -127,11 +128,6 @@ private static void failIfRequiredParametersNullOrEmpty(GlobalDocumentId id, Doc
}
}

private static boolean isNullOrEmpty(String string)
{
return string == null || string.isEmpty();
}

private void failIfUploadPartIsOrphaned(GlobalDocumentId id, DocumentFileUploadForm uploadForm)
throws ChunkUploadException
{
Expand Down

0 comments on commit f56cfda

Please sign in to comment.