General code tidy up (Visualiser)

- access modifiers adjusted
- unused declarations removed
- spelling fixes
- removed redundant code
main
Jessica McAuslin 9 years ago
parent 2d983eccfd
commit 43757b34d1

@ -9,7 +9,6 @@ import seng302.XMLReader;
import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.ParserConfigurationException;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.text.ParseException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@ -28,7 +27,6 @@ public class BoatXMLReader extends XMLReader {
* @throws IOException error * @throws IOException error
* @throws SAXException error * @throws SAXException error
* @throws ParserConfigurationException error * @throws ParserConfigurationException error
* @throws ParseException error
*/ */
public BoatXMLReader(String filePath) throws IOException, SAXException, ParserConfigurationException { public BoatXMLReader(String filePath) throws IOException, SAXException, ParserConfigurationException {
this(filePath, true); this(filePath, true);
@ -41,7 +39,6 @@ public class BoatXMLReader extends XMLReader {
* @throws IOException error * @throws IOException error
* @throws SAXException error * @throws SAXException error
* @throws ParserConfigurationException error * @throws ParserConfigurationException error
* @throws ParseException error
*/ */
public BoatXMLReader(String filePath, boolean read) throws IOException, SAXException, ParserConfigurationException { public BoatXMLReader(String filePath, boolean read) throws IOException, SAXException, ParserConfigurationException {
super(filePath); super(filePath);

@ -81,7 +81,6 @@ public class StreamedCourseXMLReader extends XMLReader {
/** /**
* reads * reads
* @throws ParseException error
* @throws StreamedCourseXMLException error * @throws StreamedCourseXMLException error
*/ */
private void read() throws StreamedCourseXMLException { private void read() throws StreamedCourseXMLException {
@ -92,7 +91,6 @@ public class StreamedCourseXMLReader extends XMLReader {
/** /**
* reads a race * reads a race
* @throws ParseException error
*/ */
private void readRace() { private void readRace() {
DateTimeFormatter dateFormat = DateTimeFormatter.ISO_OFFSET_DATE_TIME; DateTimeFormatter dateFormat = DateTimeFormatter.ISO_OFFSET_DATE_TIME;

@ -81,7 +81,6 @@ public class Boat {
/** /**
* Adds a new point to boat's track. * Adds a new point to boat's track.
* @param coordinate of point on track * @param coordinate of point on track
* @return whether add is successful
* @see seng302.Model.TrackPoint * @see seng302.Model.TrackPoint
*/ */
public void addTrackPoint(GPSCoordinate coordinate) { public void addTrackPoint(GPSCoordinate coordinate) {

@ -285,7 +285,6 @@ public class BoatInRace extends Boat {
/** /**
* Adds a new point to boat's track. * Adds a new point to boat's track.
* @param coordinate of point on track * @param coordinate of point on track
* @return whether add is successful
* @see seng302.Model.TrackPoint * @see seng302.Model.TrackPoint
*/ */
public void addTrackPoint(GPSCoordinate coordinate) { public void addTrackPoint(GPSCoordinate coordinate) {

Loading…
Cancel
Save