Skip to content

Commit

Permalink
fix(adapter): Align annotations for parseTranslation
Browse files Browse the repository at this point in the history
  • Loading branch information
djansen-redhat committed Apr 28, 2017
1 parent c7af1f3 commit 5f21489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -32,6 +32,7 @@

import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang.StringUtils;
import org.hibernate.validator.constraints.NotEmpty;
import org.zanata.common.DocumentType;
import org.zanata.common.LocaleId;
import org.zanata.exception.FileFormatAdapterException;
Expand Down Expand Up @@ -88,7 +89,7 @@ Resource parseDocumentFile(@Nonnull URI documentUri,
* if translatedDocumentContent or localeId is null
*/
TranslationsResource parseTranslationFile(@Nonnull URI fileUri,
@Nonnull LocaleId sourceLocaleId, @Nonnull String localeId,
@Nonnull LocaleId sourceLocaleId, @Nonnull @NotEmpty String localeId,
Optional<String> params)
throws FileFormatAdapterException, IllegalArgumentException;

Expand Down
Expand Up @@ -288,8 +288,8 @@ private String stripPath(String name) {
}

@Override
public TranslationsResource parseTranslationFile(URI fileUri,
LocaleId sourceLocaleId,
public TranslationsResource parseTranslationFile(@Nonnull URI fileUri,
@Nonnull LocaleId sourceLocaleId,
@Nonnull @NotEmpty String localeId,
Optional<String> filterParams)
throws FileFormatAdapterException, IllegalArgumentException {
Expand Down

0 comments on commit 5f21489

Please sign in to comment.