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

Compilation warnings #1379

Open
1 task done
simonff opened this issue Aug 23, 2024 · 0 comments
Open
1 task done

Compilation warnings #1379

simonff opened this issue Aug 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@simonff
Copy link

simonff commented Aug 23, 2024

Versions impacted by the bug

No response

What went wrong?

netcdf/cdm/core/src/main/java/ucar/ma2/Index.java:22: warning: [ClassInitializationDeadlock] Possible class initialization deadlock: Index0D is a subclass of the containing class Index
public static final Index0D scalarIndexImmutable = new Index0D(); // immutable, so can be shared
^


netcdf/cdm/core/src/main/java/ucar/ma2/StructureData.java:73: warning: [ClassInitializationDeadlock] Possible class initialization deadlock: StructureDataW is a subclass of the containing class StructureData
public static final StructureData EMPTY = new StructureDataW(StructureMembers.builder().setName("empty").build());
^


netcdf/cdm/radial/src/main/java/ucar/nc2/iosp/nids/Nidsheader.java:654: warning: [ComparisonOutOfRange] shorts may have a value in the range -32768 to 32767; therefore, this comparison to 0x8000 will always evaluate to true
if (Divlen_divider != 0x8000) {
^


netcdf/cdm/core/src/main/java/ucar/ma2/StructureMembers.java:363: error: [EqualsWrongThing] Suspicious comparison between getFullName() and getName()
return getFullName().equals(other.getName()) && Objects.equals(getDescription(), other.getDescription())
^

Relevant stack trace

No response

Relevant log messages

No response

If you have an example file that you can share, please attach it to this issue.

If so, may we include it in our test datasets to help ensure the bug does not return once fixed?
Note: the test datasets are publicly accessible without restriction.

Yes

Code of Conduct

  • I agree to follow the UCAR/Unidata Code of Conduct
@simonff simonff added the bug Something isn't working label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant