Skip to content

Commit

Permalink
Clean miscellaneous issues
Browse files Browse the repository at this point in the history
  • Loading branch information
m4gr3d committed Jul 5, 2016
1 parent 981bcc2 commit b343b8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public StructureScanner(StructureScanner copy){
copy(copy);
}

@Override
public void copy(StructureScanner source){
this.radius = source.radius;
this.heightStep = source.heightStep;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ public abstract class BaseSpatialItem extends MissionItem implements MissionItem
private LatLongAlt coordinate;

protected BaseSpatialItem(MissionItemType type) {
this(type, null);
}

protected BaseSpatialItem(MissionItemType type, LatLongAlt coordinate){
super(type);
this.coordinate = coordinate;
}

protected BaseSpatialItem(BaseSpatialItem copy){
this(copy.getType());
coordinate = copy.coordinate == null ? null : new LatLongAlt(copy.coordinate);
this(copy.getType(), copy.coordinate == null ? null : new LatLongAlt(copy.coordinate));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
public class Land extends BaseSpatialItem implements android.os.Parcelable {

public Land(){
super(MissionItemType.LAND);
super.setCoordinate(new LatLongAlt(0.0, 0.0, 0.0));
super(MissionItemType.LAND, new LatLongAlt(0.0, 0.0, 0.0));
}

public Land(Land copy){
Expand Down

0 comments on commit b343b8c

Please sign in to comment.