We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Volatile fields:
java-stream-player/src/main/java/com/goxr3plus/streamplayer/stream/StreamPlayer.java
Line 72 in a4aaa94
Line 78 in a4aaa94
Line 111 in a4aaa94
SonarLint says that you should remove volatile from these fields. See https://wiki.sei.cmu.edu/confluence/display/java/CON50-J.+Do+not+assume+that+declaring+a+reference+volatile+guarantees+safe+publication+of+the+members+of+the+referenced+object
IntelliJ complains about non-atomic operation on volatile field, probably as a consequence.
Line 483 in a4aaa94
IntelliJ inspection also complains about Synchronization on a non-final field 'audioLock' in three places, the first being
Line 202 in a4aaa94
so you should change audioLock from volatile to final.
The text was updated successfully, but these errors were encountered:
We will have multithreading issues if you remove volatile .
multithreading
volatile
Sorry, something went wrong.
Have you read https://wiki.sei.cmu.edu/confluence/display/java/CON50-J.+Do+not+assume+that+declaring+a+reference+volatile+guarantees+safe+publication+of+the+members+of+the+referenced+object
You might have multithreading issues already.
Issues #1 and #15 might be regarded as multithreading issues, I think.
No branches or pull requests
Volatile fields:
java-stream-player/src/main/java/com/goxr3plus/streamplayer/stream/StreamPlayer.java
Line 72 in a4aaa94
java-stream-player/src/main/java/com/goxr3plus/streamplayer/stream/StreamPlayer.java
Line 78 in a4aaa94
java-stream-player/src/main/java/com/goxr3plus/streamplayer/stream/StreamPlayer.java
Line 111 in a4aaa94
SonarLint says that you should remove volatile from these fields.
See https://wiki.sei.cmu.edu/confluence/display/java/CON50-J.+Do+not+assume+that+declaring+a+reference+volatile+guarantees+safe+publication+of+the+members+of+the+referenced+object
IntelliJ complains about non-atomic operation on volatile field, probably as a consequence.
java-stream-player/src/main/java/com/goxr3plus/streamplayer/stream/StreamPlayer.java
Line 483 in a4aaa94
IntelliJ inspection also complains about Synchronization on a non-final field 'audioLock' in three places, the first being
java-stream-player/src/main/java/com/goxr3plus/streamplayer/stream/StreamPlayer.java
Line 202 in a4aaa94
so you should change audioLock from volatile to final.
The text was updated successfully, but these errors were encountered: