File tree 3 files changed +3
-3
lines changed
chain/src/main/java/com/iluwatar/chain
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public OrcCommander(RequestHandler handler) {
35
35
36
36
@ Override
37
37
public void handleRequest (Request req ) {
38
- if (req .getRequestType (). equals ( RequestType . DEFEND_CASTLE )) {
38
+ if (RequestType . DEFEND_CASTLE == req .getRequestType ()) {
39
39
printHandling (req );
40
40
req .markHandled ();
41
41
} else {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public OrcOfficer(RequestHandler handler) {
35
35
36
36
@ Override
37
37
public void handleRequest (Request req ) {
38
- if (req .getRequestType (). equals ( RequestType . TORTURE_PRISONER )) {
38
+ if (RequestType . TORTURE_PRISONER == req .getRequestType ()) {
39
39
printHandling (req );
40
40
req .markHandled ();
41
41
} else {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public OrcSoldier(RequestHandler handler) {
35
35
36
36
@ Override
37
37
public void handleRequest (Request req ) {
38
- if (req .getRequestType (). equals ( RequestType . COLLECT_TAX )) {
38
+ if (RequestType . COLLECT_TAX == req .getRequestType ()) {
39
39
printHandling (req );
40
40
req .markHandled ();
41
41
} else {
You can’t perform that action at this time.
0 commit comments