You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update RFC references and remove unused TODO comment
Replaced outdated RFC 2616 references with RFC 9110 in the `Error` class to ensure accuracy and compliance with current specifications. Also removed an obsolete TODO comment from the `PlaceAttribute` class since it was no longer relevant. These changes improve documentation clarity and maintainability.
Copy file name to clipboardExpand all lines: extensions/familysearch/familysearch-api-model/src/main/java/org/familysearch/platform/Error.java
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,7 @@
35
35
@Schema(description = "A common representation of an error on the FamilySearch platform.")
36
36
publicclassError {
37
37
38
-
// TODO: Fix links to RFC 2616 and RFC 2616, Section 10 (HTTP Status Code Definitions)
39
-
@Schema(description = "The error code. Interpreted per RFC 2616, Section 10 (HTTP Status Code Definitions).")
38
+
@Schema(description = "The error code. Interpreted per [RFC 9110, Section 15 (Status Codes)](https://www.rfc-editor.org/rfc/rfc9110.html#name-status-codes).")
40
39
privateIntegercode;
41
40
42
41
@Schema(description = "A text label associated with the error code.")
@@ -49,18 +48,18 @@ public class Error {
49
48
privateStringstacktrace;
50
49
51
50
/**
52
-
* The error code. Intepreted per <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">RFC 2616, Section 10 (HTTP Status Code Definitions)</a>.
51
+
* The error code. Interpreted per <a href="https://www.rfc-editor.org/rfc/rfc9110.html#name-status-codes">RFC 9110, Section 15 (Status Codes)</a>.
53
52
*
54
-
* @return The error code. Intepreted per <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">RFC 2616, Section 10 (HTTP Status Code Definitions)</a>.
53
+
* @return The error code. Interpreted per <a href="https://www.rfc-editor.org/rfc/rfc9110.html#name-status-codes">RFC 9110, Section 15 (Status Codes)</a>.
55
54
*/
56
55
publicIntegergetCode() {
57
56
returncode;
58
57
}
59
58
60
59
/**
61
-
* The error code. Intepreted per <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">RFC 2616, Section 10 (HTTP Status Code Definitions)</a>.
60
+
* The error code. Interpreted per <a href="https://www.rfc-editor.org/rfc/rfc9110.html#name-status-codes">RFC 9110, Section 15 (Status Codes)</a>.
62
61
*
63
-
* @param code The error code. Intepreted per <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">RFC 2616, Section 10 (HTTP Status Code Definitions)</a>.
62
+
* @param code The error code. Interpreted per <a href="https://www.rfc-editor.org/rfc/rfc9110.html#name-status-codes">RFC 9110, Section 15 (Status Codes)</a>.
Copy file name to clipboardExpand all lines: extensions/familysearch/familysearch-api-model/src/main/java/org/familysearch/platform/places/PlaceAttribute.java
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,6 @@
18
18
/**
19
19
* @author Ryan Heaton
20
20
*/
21
-
// TODO: Travis - This class is not used in the current version of the FamilySearch API. It is not clear if it is still needed.
0 commit comments