Skip to content

Commit

Permalink
add @SuppressWarnings(NonAtomicVolatileUpdate) (apache#5606)
Browse files Browse the repository at this point in the history
Co-authored-by: 吴晟 Wu Sheng <[email protected]>
  • Loading branch information
ascrutae and wu-sheng authored Oct 1, 2020
1 parent 6f99a24 commit 1cddb60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
public class MultipleChannelsConsumer extends Thread {
private volatile boolean running;
private volatile ArrayList<Group> consumeTargets;
@SuppressWarnings("NonAtomicVolatileUpdate")
private volatile long size;
private final long consumeCycle;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* use normal int to rolling.
*/
public class SimpleRollingPartitioner<T> implements IDataPartitioner<T> {
@SuppressWarnings("NonAtomicVolatileUpdate")
private volatile int i = 0;

@Override
Expand Down

0 comments on commit 1cddb60

Please sign in to comment.