API方法将按照从外部客户端接收的输入参数中请求的方式对应用程序状态执行相关操作。
The API method performs the operation on the application state as requested in the input parameters received from the external client.
第一,没有检查输入的参数,即使知道处于某些状态的参数会造成方法出现异常。
One is not checking the parameters coming in, even though you know at this point that a parameter in a certain state will cause an exception in your method.
您可以看到, CalculatorService 中的 add() 方法的实现不再获得 calcID 来确定作为输入参数的计算器状态。
You can see that the implementation of the add() method on the CalculatorService no longer obtains the calcID identifying the calculator state as an input parameter.
应用推荐