Fix suspicious method call. #1555

Fixes SuspiciousMethodCalls inspection violation.

Description:
>This inspection reports method calls to parameterized collections, where actual argument type does not correspond to the collection's elements type.  For example if you have the following code:
 ```
     List<Integer> list = getListOfElements();
     list.remove("");
 ```
 the call to `remove()` will be highlighted.
This commit is contained in:
Michal Kordas 2015-08-07 01:16:27 +02:00 committed by Roman Ivanov
parent 8a3f5bf6d5
commit 2e32ba7ab6
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public class LineSet {
* @return the starting column for the first line.
*/
public int firstLineCol() {
final Object firstLineKey = lines.firstKey();
final Integer firstLineKey = lines.firstKey();
return lines.get(firstLineKey);
}