Skip to content

Commit

Permalink
Merge pull request #2 from shweta-code/master
Browse files Browse the repository at this point in the history
Changes to toStrig method in Coordinates Class . StringBuilder to be used instead of StringBuffer since it has a better performance in an environment that doesn't demand multithreaded capabilities.
  • Loading branch information
priyaaank authored Sep 13, 2016
2 parents 054d367 + 4b39509 commit 9f94db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/thoughtworks/rover/universe/Coordinates.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public Coordinates newCoordinatesFor(final int xCoordinateStepValue, final int y

@Override
public String toString() {
StringBuffer coordinateOutput = new StringBuffer();
StringBuilder coordinateOutput = new StringBuilder();
coordinateOutput.append(xCoordinate);
coordinateOutput.append(" ");
coordinateOutput.append(yCoordinate);
Expand Down

0 comments on commit 9f94db9

Please sign in to comment.