hidingmyname opened a new issue, #16826:
URL: https://github.com/apache/lucene/issues/16826
### Description
**Location** (lucene @ main f94888d85c1):
`lucene/core/src/java/org/apache/lucene/util/LongsRef.java:134`
**Current text**
```
The returned IntsRef will have a length of other.length ...
```
**Problem**: Copy-paste from IntsRef; the method returns a `LongsRef` (the
other mention in the same javadoc was already fixed).
**Suggested fix**: The returned LongsRef will have ...
```diff
--- a/lucene/core/src/java/org/apache/lucene/util/LongsRef.java
+++ b/lucene/core/src/java/org/apache/lucene/util/LongsRef.java
@@ -132,5 +132,5 @@
* Creates a new LongsRef that points to a copy of the longs from
<code>other</code>
*
- * <p>The returned IntsRef will have a length of other.length and an
offset of zero.
+ * <p>The returned LongsRef will have a length of other.length and an
offset of zero.
*/
public static LongsRef deepCopyOf(LongsRef other) {
```
**Already fixed in Lucene.NET**: apache/lucenenet@268e78d42
**How Lucene.NET fixed it**: commit `268e78d421b` (2017-06-04)
"Lucene.Net.Util: Fixed XML Documentation comments, types beginning with H-Z",
file `src/Lucene.Net/Util/LongsRef.cs`
```diff
@@ -243,10 +244,10 @@ public override string ToString()
}
/// <summary>
- /// Creates a new IntsRef that points to a copy of the longs from
- /// <code>other</code>
- /// <p>
- /// The returned IntsRef will have a length of other.length
+ /// Creates a new <see cref="Int64sRef"/> that points to a copy of
the <see cref="long"/>s from
+ /// <paramref name="other"/>.
+ /// <para/>
+ /// The returned <see cref="Int64sRef"/> will have a length of
<c>other.Length</c>
/// and an offset of zero.
/// </summary>
public static Int64sRef DeepCopyOf(Int64sRef other)
```
I can submit a PR for this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]