mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-04 02:12:59 +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
@@ -44,7 +44,7 @@ public class FrontController {
|
||||
}
|
||||
}
|
||||
|
||||
private Class getCommandClass(String request) {
|
||||
private static Class getCommandClass(String request) {
|
||||
Class result;
|
||||
try {
|
||||
result = Class.forName("com.iluwatar.front.controller." + request + "Command");
|
||||
|
||||
Reference in new issue
Block a user