Redundant Sam Constructor inspection

This commit is contained in:
Natalia Ukhorskaya
2015-08-13 14:16:37 +03:00
parent ccb4abee95
commit bf7f56d458
25 changed files with 706 additions and 1 deletions
@@ -86,7 +86,7 @@ public class SingleAbstractMethodUtils {
}
@Nullable
private static JetType getFunctionTypeForSamType(@NotNull JetType samType) {
public static JetType getFunctionTypeForSamType(@NotNull JetType samType) {
// e.g. samType == Comparator<String>?
ClassifierDescriptor classifier = samType.getConstructor().getDeclarationDescriptor();