Issue 695: Renamed from method

This commit is contained in:
Jason King 2011-12-05 15:12:58 +00:00
parent bf034c7b7a
commit 0dae767fa7
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public class Location extends Resource<Location> {
*/ */
@Override @Override
public Builder toBuilder() { public Builder toBuilder() {
return new Builder().fromTask(this); return new Builder().fromLocation(this);
} }
public static class Builder extends Resource.Builder<Location> { public static class Builder extends Resource.Builder<Location> {
@ -85,7 +85,7 @@ public class Location extends Resource<Location> {
actions, friendlyName, locode, iso3166); actions, friendlyName, locode, iso3166);
} }
public Builder fromTask(Location in) { public Builder fromLocation(Location in) {
return fromResource(in).friendlyName(in.getFriendlyName()).locode(in.getLocode()).iso3166(in.getIso3166()); return fromResource(in).friendlyName(in.getFriendlyName()).locode(in.getLocode()).iso3166(in.getIso3166());
} }