package com.pm.server.player;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Component;

import com.pm.server.datatype.Coordinate;
import com.pm.server.utils.JsonUtils;

@Component
public abstract class PlayerImpl implements Player {

	private Integer id = 0;
	private Coordinate location;

	private final static Logger log =
			LogManager.getLogger(PlayerImpl.class.getName());

	public void setId(Integer id) {

		log.debug("Setting id to {}", id);

		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setLocation(Coordinate location) {

		String locationString = JsonUtils.objectToJson(location);
		if(locationString != null) {
			log.debug("Setting location to {}", locationString);
		}

		this.location = location;
	}

	public Coordinate getLocation() {
		return location;
	}

}

@@ -307,21 +307,23 @@
 r %7B%0A%0A%09pr
-ivate
+otected
  Integer
@@ -334,21 +334,23 @@
 = 0;%0A%09pr
-ivate
+otected
  Coordin

Change Player data members to protected