mirror of
https://github.com/google/nomulus
synced 2026-07-31 04:22:47 +00:00
Set svID in ConfigModule instead of hard-coding it
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=138552819
This commit is contained in:
committed by
Ben McIlwain
parent
1abd0e1123
commit
1671508547
@@ -31,7 +31,7 @@ import org.joda.time.DateTime;
|
||||
*/
|
||||
public class Greeting extends ImmutableObject implements ResponseOrGreeting {
|
||||
|
||||
String svID = "Charleston Road Registry";
|
||||
String svID;
|
||||
DateTime svDate;
|
||||
|
||||
/** This is never changed, so it might as well be static for efficiency. */
|
||||
@@ -42,8 +42,9 @@ public class Greeting extends ImmutableObject implements ResponseOrGreeting {
|
||||
@XmlElement
|
||||
static Dcp dcp = new Dcp();
|
||||
|
||||
public static Greeting create(DateTime svDate) {
|
||||
public static Greeting create(DateTime svDate, String svID) {
|
||||
Greeting instance = new Greeting();
|
||||
instance.svID = svID;
|
||||
instance.svDate = svDate;
|
||||
return instance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user