Remove duplicate code from JvmCodegenUtil

This commit is contained in:
Alexander Udalov
2014-09-08 13:53:43 +04:00
parent d52eff0825
commit 3b05ec0df4
3 changed files with 3 additions and 45 deletions
@@ -170,7 +170,7 @@ public class CodegenUtil {
}
private static boolean rawTypeMatches(JetType type, ClassifierDescriptor classifier) {
return type.getConstructor().getDeclarationDescriptor().getOriginal() == classifier.getOriginal();
return type.getConstructor().equals(classifier.getTypeConstructor());
}
public static boolean isEnumValueOfMethod(@NotNull FunctionDescriptor functionDescriptor) {