You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2022/12/02 01:46:20 UTC
[lucene] branch branch_9x updated: fix wrong serialization by ShapeDocValues (#11974)
This is an automated email from the ASF dual-hosted git repository.
rmuir pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new 4eddd29bd91 fix wrong serialization by ShapeDocValues (#11974)
4eddd29bd91 is described below
commit 4eddd29bd91530d8c5a7b5603d49be2d745a2b5e
Author: Robert Muir <rm...@apache.org>
AuthorDate: Thu Dec 1 20:32:42 2022 -0500
fix wrong serialization by ShapeDocValues (#11974)
Closes #11973
---
gradle/validation/error-prone.gradle | 2 +-
lucene/core/src/java/org/apache/lucene/document/ShapeDocValues.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gradle/validation/error-prone.gradle b/gradle/validation/error-prone.gradle
index 97db9e2cae6..7c2aecc8cd9 100644
--- a/gradle/validation/error-prone.gradle
+++ b/gradle/validation/error-prone.gradle
@@ -377,7 +377,7 @@ allprojects { prj ->
// '-Xep:LiteEnumValueOf:OFF', // we don't use protobuf
// '-Xep:LiteProtoToString:OFF', // we don't use protobuf
// '-Xep:LockNotBeforeTry:OFF', // TODO: there are problems
- // '-Xep:LogicalAssignment:OFF', // TODO: there are problems
+ '-Xep:LogicalAssignment:WARN',
// '-Xep:LongDoubleConversion:OFF', // TODO: there are problems
'-Xep:LongFloatConversion:WARN',
'-Xep:LoopOverCharArray:WARN',
diff --git a/lucene/core/src/java/org/apache/lucene/document/ShapeDocValues.java b/lucene/core/src/java/org/apache/lucene/document/ShapeDocValues.java
index 77163364dc8..c8ed32a3e73 100644
--- a/lucene/core/src/java/org/apache/lucene/document/ShapeDocValues.java
+++ b/lucene/core/src/java/org/apache/lucene/document/ShapeDocValues.java
@@ -550,7 +550,7 @@ abstract class ShapeDocValues {
if (node.triangle.bc == true) {
header |= 0x20;
}
- if (node.triangle.ca = true) {
+ if (node.triangle.ca == true) {
header |= 0x40;
}