Skip to content

Commit

Permalink
Fixed compiler warnings: synchronisation on a non-final field
Browse files Browse the repository at this point in the history
  • Loading branch information
mkulesh committed Jul 20, 2020
1 parent 00b0745 commit 963fbab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/mkulesh/mmd/AtomPainter.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ enum BackgroudMode
private ZoomPanel zoomPanel = null;
private Context context = null;
private SurfaceHolder holder = null;
private WallpaperOffsets wallpaperOffsets = new WallpaperOffsets();
private final WallpaperOffsets wallpaperOffsets = new WallpaperOffsets();

// synchronization with calculation thread
private BlockingQueue<AtomSet> waitingQueue = null, immediateQueue = null;

// thread implementation
private Thread thread = null;
private ThreadContol threadControl = new ThreadContol();
private final ThreadContol threadControl = new ThreadContol();

// timing statistic and fps control
private static final float maxFps = 25.0f;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/mkulesh/mmd/Experiment.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static class Options
* Private attributes to be created internally
*/
private Context context = null;
private ThreadContol threadControl = new ThreadContol();
private final ThreadContol threadControl = new ThreadContol();
private AtomPainter painter = null;
private Thread thread = null;

Expand Down

0 comments on commit 963fbab

Please sign in to comment.