| In Method: | JsMessage(String, String, boolean, boolean, String, List, Set, String, boolean, String) |
| Code with Finding: |
class JsMessage {
/**
* Creates an instance. Client code should use a {@link JsMessage.Builder}.
*
* @param key a key that should identify this message in sources; typically
* it is the message's name (e.g. {@code "MSG_HELLO"}).
* @param id an id that *uniquely* identifies the message in the bundle.
* It could be either the message name or id generated from the message
* content.
* @param meaning The user-specified meaning of the message. May be null if
* the user did not specify an explicit meaning.
*/
private JsMessage(String sourceName, String key,
boolean isAnonymous, boolean isExternal,
String id, List<CharSequence> parts, Set<String> placeholders,
String desc, boolean hidden, String meaning) {
Preconditions.checkState(key != null);
Preconditions.checkState(id != null);
this.key = key;
this.id = id;
this.parts = Collections.unmodifiableList(parts);
this.placeholders = Collections.unmodifiableSet(placeholders);
this.desc = desc;
this.hidden = hidden;
this.meaning = meaning;
this.sourceName = sourceName;
this.isAnonymous = isAnonymous;
this.isExternal = isExternal;
}
}
|