Skip to content

Conversation

@jacobperron
Copy link
Contributor

This resolves several compiler warnings.

This resolves several compiler warnings.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@esteve
Copy link
Member

esteve commented Feb 11, 2020

@jacobperron this makes the bytecode compliant with 1.6, so it can be used on Android, the warnings are harmless. Do you need any features available in 1.7?

@jacobperron
Copy link
Contributor Author

Do you need any features available in 1.7?

Nope. I wasn't aware of this requirement for Android. We can leave it as-is.

@clalancette
Copy link
Contributor

@jacobperron this makes the bytecode compliant with 1.6, so it can be used on Android, the warnings are harmless. Do you need any features available in 1.7?

@esteve The main reason to remove the flags is just so we can get a "clean" build with modern Java (I'm using Java 11 here on Ubuntu 18.04). Because these flags are set, they:

  1. Print a warning.
  2. Mask out several checks in newer Java.

How would you feel about only setting the Java 6 flags for the Android target?

@jacobperron jacobperron deleted the remove_compile_flags branch March 17, 2020 22:35
ivanpauno pushed a commit that referenced this pull request Apr 27, 2022
This fixes deprecation warnings at build time.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants