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

Commit

Permalink
Merge pull request #8 from zanata/rhbz1037932-locale-size
Browse files Browse the repository at this point in the history
rhbz1037932 - restrict locale id length
  • Loading branch information
Alex Eng committed Dec 23, 2013
2 parents cd24f55 + 2c317a9 commit 60dca4e
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -3,6 +3,7 @@
import java.io.Serializable;

import javax.annotation.Nonnull;
import javax.validation.constraints.Size;

import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonValue;
Expand All @@ -11,6 +12,7 @@ public class LocaleId implements Serializable {

private static final long serialVersionUID = 1L;

@Size(max = 255)
private @Nonnull
String id;
// TODO split up to language code, country code, qualifier etc..
Expand Down

0 comments on commit 60dca4e

Please sign in to comment.