Skip to content

Commit b587e36

Browse files
jvschneidSteven Yuan
authored and
Steven Yuan
committed
Improve docId getter and documentation (smithy-lang#1872)
1 parent 95c5878 commit b587e36

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/source-1.0/spec/aws/aws-core.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ need to explicitly configure the ``cloudTrailEventSource`` setting.
240240
.. _service-doc-id:
241241

242242
``docId``
243-
===========================
243+
=========
244244

245245
The ``docId`` property is a ``string`` value that is used to implement linking
246246
between service and SDK documentation for AWS services.

docs/source-2.0/aws/aws-core.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ need to explicitly configure the ``cloudTrailEventSource`` setting.
200200
.. _service-doc-id:
201201

202202
``docId``
203-
===========================
203+
=========
204204

205205
The ``docId`` property is a ``string`` value that is used to implement linking
206206
between service and SDK documentation for AWS services.

smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/ServiceTrait.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public String getCloudTrailEventSource() {
158158
* @return Returns the documentation identifier value for the service name.
159159
*/
160160
public String getDocId(Model model) {
161-
return getDocId().orElse(buildDefaultDocId(model));
161+
return getDocId().orElseGet(() -> buildDefaultDocId(model));
162162
}
163163

164164
protected Optional<String> getDocId() {

0 commit comments

Comments
 (0)