Skip to content

Commit c5a6de9

Browse files
committed
Make PathSegment final and tidy javadoc
1 parent 83ca5db commit c5a6de9

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

http-api/src/main/java/io/avaje/http/api/PathSegment.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
* like <code>chair;vendor=ikea;size=small</code>.
1010
* <p>
1111
* Matrix parameters are optional 'qualifiers' of the path segment.
12-
* </p>
1312
*/
14-
public class PathSegment {
13+
public final class PathSegment {
1514

1615
private final String val;
1716

@@ -45,10 +44,8 @@ public PathSegment(String value) {
4544
* Return the main segment value.
4645
* <p>
4746
* For "chair" this returns "chair"
48-
* </p>
4947
* <p>
5048
* For "chair;vendor=ikea;size=small" this returns "chair"
51-
* </p>
5249
*/
5350
public String val() {
5451
return val;
@@ -58,13 +55,11 @@ public String val() {
5855
* Return a metric value for the given key.
5956
* <p>
6057
* For example, given "chair;vendor=ikea;size=small"
61-
* </p>
6258
* <p>
63-
* metric("vendor") returns "ikea".
64-
* </p>
59+
* matrix("vendor") returns "ikea".
6560
*
66-
* @param key The metric key
67-
* @return The metric value if supplied or null
61+
* @param key The matrix key
62+
* @return The matrix value if supplied or null
6863
*/
6964
public String matrix(String key) {
7065
return matrixValues == null ? null : matrixValues.get(key);

http-api/src/main/java/io/avaje/http/api/PathTypeConversion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* <p/>
1010
* These methods are intended to be used by APT source generators.
1111
*/
12-
public class PathTypeConversion {
12+
public final class PathTypeConversion {
1313

1414
/**
1515
* Return the value if non-null and otherwise the default value.

0 commit comments

Comments
 (0)