Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler warnings #480

Open
robvadai opened this issue Sep 27, 2023 · 0 comments
Open

Compiler warnings #480

robvadai opened this issue Sep 27, 2023 · 0 comments
Labels
Hacktoberfest https://hacktoberfest.digitalocean.com/

Comments

@robvadai
Copy link

Describe the bug

Several warnings on compilation, this one is particularly bad:

comparing values of types Int and Null using `!=` will always yield true

Full list:

[Warn] org/zouzias/spark/lucenerdd/package.scala:62:11: comparing values of types Int and Null using `!=` will always yield true
[Warn] org/zouzias/spark/lucenerdd/package.scala:71:11: comparing values of types Long and Null using `!=` will always yield true
[Warn] org/zouzias/spark/lucenerdd/package.scala:80:11: comparing values of types Double and Null using `!=` will always yield true
[Warn] org/zouzias/spark/lucenerdd/package.scala:89:11: comparing values of types Float and Null using `!=` will always yield true
[Warn] org/zouzias/spark/lucenerdd/spatial/shape/package.scala:31:9: method makePoint in class SpatialContext is deprecated
[Warn] org/zouzias/spark/lucenerdd/spatial/shape/package.scala:47:32: method makePoint in class SpatialContext is deprecated
[Warn] org/zouzias/spark/lucenerdd/spatial/shape/package.scala:56:9: method makeRectangle in class SpatialContext is deprecated
[Warn] org/zouzias/spark/lucenerdd/spatial/shape/package.scala:63:9: method makeCircle in class SpatialContext is deprecated
[Warn] org/zouzias/spark/lucenerdd/spatial/shape/package.scala:69:9: method makeShape in class JtsSpatialContext is deprecated
[Warn] org/zouzias/spark/lucenerdd/spatial/shape/package.scala:75:9: method makeShape in class JtsSpatialContext is deprecated
[Warn] org/zouzias/spark/lucenerdd/spatial/shape/partition/ShapeLuceneRDDPartition.scala:132:13: method makeCircle in class SpatialContext is deprecated
[Warn] org/zouzias/spark/lucenerdd/spatial/shape/partition/ShapeLuceneRDDPartition.scala:148:18: method makePoint in class SpatialContext is deprecated
[Warn] org/zouzias/spark/lucenerdd/spatial/shape/partition/ShapeLuceneRDDPartition.scala:198:21: method makePoint in class SpatialContext is deprecated
[Warn] org/zouzias/spark/lucenerdd/spatial/shape/partition/ShapeLuceneRDDPartition.scala:208:21: method makeRectangle in class SpatialContext is deprecated
[Warn] org/zouzias/spark/lucenerdd/spatial/shape/partition/ShapeLuceneRDDPartition.scala:214:27: method makePoint in class SpatialContext is deprecated
[Warn] org/zouzias/spark/lucenerdd/spatial/shape/partition/ShapeLuceneRDDPartition.scala:215:28: method makePoint in class SpatialContext is deprecated
[Warn] org/zouzias/spark/lucenerdd/spatial/shape/partition/ShapeLuceneRDDPartition.scala:216:21: method makeRectangle in class SpatialContext is deprecated
[Warn] org/zouzias/spark/lucenerdd/store/IndexStorable.scala:102:15: class RAMDirectory in package store is deprecated

To Reproduce

In my case I just did a build

./gradlew clean build

Expected behavior

No warnings, especially the one highlighted above.

Versions (please complete the following information):

  • spark-lucenerdd version: master version
  • SBT version: I was using Gradle 7.4.2
  • Spark Version: 3.4.1
  • Java version: java version "11" 2018-09-25

Additional context

Deprecations like RAMDisk may be difficult to solve but obvious warnings should be cleared

@zouzias zouzias added the Hacktoberfest https://hacktoberfest.digitalocean.com/ label Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest https://hacktoberfest.digitalocean.com/
Projects
None yet
Development

No branches or pull requests

2 participants