Explanation

Code Analyzer detects that the only argument to a class method is unused. In other words, the value that the method returns is independent of the object that calls it. This can happen due to a typographical error in the method body, or it can be the desired behavior. However, it might be appropriate to make the method a static method, so your code can call it when there is no object available.


Suggested Action

Do one of the following:

For more information, see “Defining a Static Method”.