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

Commit

Permalink
Add @nullable annotation to locale lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Jun 4, 2015
1 parent 0306816 commit 7d65aea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -25,6 +25,7 @@
import java.util.Set;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import org.zanata.common.LocaleId;
import org.zanata.exception.ZanataServiceException;
Expand Down Expand Up @@ -52,6 +53,7 @@ public interface LocaleService {

HLocale getByLocaleId(@Nonnull LocaleId locale);

@Nullable
HLocale getByLocaleId(@Nonnull String localeId);

@Nonnull
Expand Down
Expand Up @@ -29,6 +29,7 @@
import java.util.Set;
import java.util.TreeMap;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.In;
Expand Down Expand Up @@ -263,6 +264,7 @@ public HLocale getByLocaleId(@Nonnull LocaleId locale) {
}

@Override
@Nullable
public HLocale getByLocaleId(@Nonnull String localeId) {
final LocaleId locale;
try {
Expand Down

0 comments on commit 7d65aea

Please sign in to comment.