Skip to content

Commit a962cb4

Browse files
committed
ServerTimestamp.java: use {@code } instead of <code></code>
1 parent 2845a94 commit a962cb4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/ServerTimestamp.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
* with a server-generated timestamp.
2626
*
2727
* <h3>Kotlin Note</h3>
28-
* When applying this annotation to a property of a Kotlin class, the <code>@get</code> use-site
29-
* target should always be used. There is no need to use the <code>@set</code> use-site target as
30-
* this annotation is <em>only</em> considered when <em>writing</em> instances into Firestore, and
31-
* is ignored when <em>reading</em> instances from Firestore.
28+
* When applying this annotation to a property of a Kotlin class, the {@code @get} use-site target
29+
* should always be used. There is no need to use the {@code @set} use-site target as this
30+
* annotation is <em>only</em> considered when <em>writing</em> instances into Firestore, and is
31+
* ignored when <em>reading</em> instances from Firestore.
3232
* <p>
3333
* Here is an example of a class that can both be written into and read from Firestore whose
34-
* <code>foo</code> property will be populated with the server timestamp in Firestore if its value
35-
* is null:
34+
* {@code foo} property will be populated with the server timestamp in Firestore if its value is
35+
* null:
3636
* <pre>
3737
* data class Pojo(@get:ServerTimestamp var foo: Timestamp? = null) {
3838
* constructor() : this(null) // Used by Firestore to create new instances
@@ -44,8 +44,8 @@
4444
* <pre>
4545
* data class Pojo(@get:ServerTimestamp val foo: Timestamp? = null)
4646
* </pre>
47-
* That is, <code>var</code> can be tightened to <code>val</code> and the secondary no-argument
48-
* constructor can be omitted.
47+
* That is, {@code var} can be tightened to {@code val} and the secondary no-argument constructor
48+
* can be omitted.
4949
*/
5050
@Retention(RetentionPolicy.RUNTIME)
5151
@Target({ElementType.METHOD, ElementType.FIELD})

0 commit comments

Comments
 (0)