Пример #1
0
  public static final SystemMessage getSystemMessage(final SystemMessageId smId) {
    SystemMessage sm = smId.getStaticSystemMessage();
    if (sm != null) return sm;

    sm = new SystemMessage(smId);
    if (smId.getParamCount() == 0) smId.setStaticSystemMessage(sm);

    return sm;
  }
Пример #2
0
 private SystemMessage(final SystemMessageId smId) {
   final int paramCount = smId.getParamCount();
   _smId = smId;
   _params = paramCount != 0 ? new SMParam[paramCount] : EMPTY_PARAM_ARRAY;
 }