mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-05 16:14:14 +00:00
squid:S2325 - private methods that don't access instance data should be static
This commit is contained in:
1 parent
c580b61df3
commit
3791a80978
6 files changed
+8
-8
No files matched your search
@@ -60,7 +60,7 @@ public class DwarvenGoldmineFacade {
|
||||
makeActions(workers, DwarvenMineWorker.Action.GO_HOME, DwarvenMineWorker.Action.GO_TO_SLEEP);
|
||||
}
|
||||
|
||||
private void makeActions(Collection<DwarvenMineWorker> workers,
|
||||
private static void makeActions(Collection<DwarvenMineWorker> workers,
|
||||
DwarvenMineWorker.Action... actions) {
|
||||
for (DwarvenMineWorker worker : workers) {
|
||||
worker.action(actions);
|
||||
|
||||
Reference in new issue
Block a user