remove not use import and add Override and add a miss @Component
This commit is contained in:
@@ -38,6 +38,7 @@ public class TypeHierarchyResultHandler implements ResultHandler<Object> {
|
||||
|
||||
private Map<Class<?>, ResultHandler<?>> resultHandlers = new HashMap<>();
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void handleResult(Object result) {
|
||||
if (result == null) { // void methods
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
package com.example;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
*
|
||||
* Program state for the illustrative Spring Shell Calculator application.
|
||||
*
|
||||
* @author Sualeh Fatehi
|
||||
*/
|
||||
@Component
|
||||
public class CalculatorState {
|
||||
|
||||
private int memory;
|
||||
|
||||
Reference in New Issue
Block a user