Skip to content

AVRO-1982: Fix static code analyzer findings.#173

Closed
zivanfi wants to merge 1 commit intoapache:masterfrom
zivanfi:sonar-issues
Closed

AVRO-1982: Fix static code analyzer findings.#173
zivanfi wants to merge 1 commit intoapache:masterfrom
zivanfi:sonar-issues

Conversation

@zivanfi
Copy link

@zivanfi zivanfi commented Dec 19, 2016

Fixed several possible null pointer exceptions and unchecked casts.
These triggered security and code health warnings in our static code
analyzer tools.

Copy link
Contributor

@gszadovszky gszadovszky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@tomwhite
Copy link
Member

tomwhite commented Jan 9, 2017

+1. Can you open a JIRA to go with this please?

@zivanfi zivanfi changed the title Minor cleanups. AVRO-1982: Fix static code analyzer findings. Jan 11, 2017
@zivanfi
Copy link
Author

zivanfi commented Jan 11, 2017

@tomwhite I created a JIRA and referenced it in the commit message.

@tomwhite
Copy link
Member

I get the following compilation error:

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/tom/workspace/avro/lang/java/avro/src/main/java/org/apache/avro/util/WeakIdentityHashMap.java:[165,26] illegal generic type for instanceof

@zivanfi
Copy link
Author

zivanfi commented Jan 20, 2017

I don't know how that happened - I probably ran mvn test in a different dir, sorry about that. Will fix as soon as I have time.

Fixed several possible null pointer exceptions and unchecked casts.
These triggered security and code health warnings in our static code
analyzer tools.
@zivanfi
Copy link
Author

zivanfi commented Jan 20, 2017

Fixed, PTAL.

@asfgit asfgit closed this in 6bdc8f4 Jan 27, 2017
iemejia referenced this pull request in iemejia/avro May 24, 2021
…es (#173)

* Added ability to parse a list of schemas, which may have cross dependencies. Added tests

* Fixing the formatting

* A bit more formatting

* Added a comma to please clippy

* Switched an ok_or to an ok_or_else at the behest of clippy

* Following fixes: Fixed some docstrings, a new error for name collisions when using parse_list, guarantees that input order matches output order

* Removed an unused import

* Small formatting fixes

* Added another test involving fullnames

* Added test that ensures when a recursive type is put in, the algorithm does blow the top off the stack but returns an error

* removed unused variable

* Updated readme and one tiny fix
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.

3 participants