mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 09:13:27 +00:00
Code cleanup (#1461)
* Code cleanup * Fix flux tests * Fix checkstyle errors * Fix compile error
This commit is contained in:
1 parent
5381387026
commit
417f21ed3d
243 files changed
+1154
-1162
No files matched your search
@@ -28,9 +28,9 @@ package com.iluwatar.producer.consumer;
|
||||
*/
|
||||
public class Item {
|
||||
|
||||
private String producer;
|
||||
private final String producer;
|
||||
|
||||
private int id;
|
||||
private final int id;
|
||||
|
||||
public Item(String producer, int id) {
|
||||
this.id = id;
|
||||
|
||||
@@ -31,7 +31,7 @@ import java.util.concurrent.LinkedBlockingQueue;
|
||||
*/
|
||||
public class ItemQueue {
|
||||
|
||||
private BlockingQueue<Item> queue;
|
||||
private final BlockingQueue<Item> queue;
|
||||
|
||||
public ItemQueue() {
|
||||
|
||||
|
||||
Reference in new issue
Block a user