Skip to content

Commit

Permalink
Merge pull request #9 from markmcd/fixjavadoc
Browse files Browse the repository at this point in the history
🚧 fixed javadoc warnings
  • Loading branch information
broady committed Sep 1, 2014
2 parents d2f9efc + 66931b8 commit dd15aed
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/google/maps/DirectionsApiRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ public DirectionsApiRequest mode(TravelMode mode) {
/**
* Indicates that the calculated route(s) should avoid the indicated features.
*
* @param restrictions one or more of {@link Restriction#TOLLS},
* {@link Restriction#HIGHWAYS}, {@link Restriction#FERRIES}
* @param restrictions one or more of {@link RouteRestriction#TOLLS},
* {@link RouteRestriction#HIGHWAYS}, {@link RouteRestriction#FERRIES}
*/
public DirectionsApiRequest avoid(RouteRestriction... restrictions) {
return param("avoid", join('|', restrictions));
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/google/maps/DistanceMatrixApiRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public DistanceMatrixApiRequest mode(TravelMode mode) {
/**
* Introduces restrictions to the route. Only one restriction can be specified.
*
* @param restriction One of {@link Restriction#TOLLS}, {@link Restriction#FERRIES} or {@link
* Restriction#HIGHWAYS}.
* @param restriction One of {@link RouteRestriction#TOLLS}, {@link RouteRestriction#FERRIES} or
* {@link RouteRestriction#HIGHWAYS}.
*/
public DistanceMatrixApiRequest avoid(RouteRestriction restriction) {
return param("avoid", restriction);
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/google/maps/model/DirectionsLeg.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
/**
* A component of a Directions API result.
*
* See {@url https://developers.google.com/maps/documentation/directions/#Legs} for more detail.
* See <a href="https://developers.google.com/maps/documentation/directions/#Legs">the Legs
* documentation</a> for more detail.
*/
public class DirectionsLeg {

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/google/maps/model/DirectionsRoute.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
* array. Even if the service returns no results (such as if the origin and/or destination doesn't
* exist) it still returns an empty routes array.
*
* <p>Please see {@url https://developers.google.com/maps/documentation/directions/#Routes} for
* <p>Please see <a href="https://developers.google
* .com/maps/documentation/directions/#Routes">Routes</a> for
* more detail.
*/
public class DirectionsRoute {
Expand Down
17 changes: 8 additions & 9 deletions src/main/java/com/google/maps/model/DirectionsStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@
* that the next step is 37 miles/40 minutes from this step.
*
* <p>When using the Directions API to search for transit directions, the steps array will include
* additional Transit Details
* {@url https://developers.google.com/maps/documentation/directions/#TransitDetails}
* in the form of a {@code transitDetails} array. If the directions include multiple modes of
* transportation, detailed directions will be provided for walking or driving steps in a
* {@code subSteps} array. For example, a walking step will include directions from the start and
* end locations: "Walk to Innes Ave & Fitch St". That step will include detailed walking
* directions for that route in the {@code subSteps} array, such as: "Head north-west",
* additional <a href="https://developers.google.com/maps/documentation/directions/#TransitDetails">
* Transit Details</a> in the form of a {@code transitDetails} array. If the directions include
* multiple modes of transportation, detailed directions will be provided for walking or driving
* steps in a {@code subSteps} array. For example, a walking step will include directions from
* the start and end locations: "Walk to Innes Ave & Fitch St". That step will include detailed
* walking directions for that route in the {@code subSteps} array, such as: "Head north-west",
* "Turn left onto Arelious Walker", and "Turn left onto Innes Ave".
*/
public class DirectionsStep {
Expand Down Expand Up @@ -75,8 +74,8 @@ public class DirectionsStep {

/**
* {@code travelMode} is the travel mode of this step. See
* {@url https://developers.google.com/maps/documentation/directions/#TravelModes} for
* more detail.
* <a href="https://developers.google.com/maps/documentation/directions/#TravelModes">Travel
* Modes</a> for more detail.
*/
public TravelMode travelMode;
}
7 changes: 4 additions & 3 deletions src/main/java/com/google/maps/model/EncodedPolyline.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@
/**
* Encoded Polylines are used by the API to represent paths.
*
* <p>See {@url https://developers.google.com/maps/documentation/utilities/polylinealgorithm} for
* more detail on the protocol.
* <p>See <a href="https://developers.google
* .com/maps/documentation/utilities/polylinealgorithm">Encoded Polyline Algorithm</a> for more
* detail on the protocol.
*/
public class EncodedPolyline {
private String points;

/**
* @param encodedPath A string representation of a path, encoded with the Polyline Algorithm.
* @param encodedPoints A string representation of a path, encoded with the Polyline Algorithm.
*/
public EncodedPolyline(String encodedPoints) {
this.points = encodedPoints;
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/google/maps/internal/UrlSignerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@

import com.google.maps.SmallTests;

import okio.ByteString;

import org.junit.Test;
import org.junit.experimental.categories.Category;

import okio.ByteString;

/**
* Test case for {@link UrlSigner}.
*/
Expand Down

0 comments on commit dd15aed

Please sign in to comment.