Minor, drop some obsolete usages of TRAIT in compiler

This commit is contained in:
Alexander Udalov
2015-10-13 17:39:52 +03:00
parent baaa3ef50a
commit 78829b9e8f
3 changed files with 4 additions and 12 deletions
@@ -50,7 +50,7 @@ public class ModifiersChecker {
private enum InnerModifierCheckResult {
ALLOWED,
ILLEGAL_POSITION,
IN_TRAIT,
IN_INTERFACE,
IN_OBJECT,
}
@@ -78,7 +78,7 @@ public class ModifiersChecker {
if (!(containingDeclaration instanceof ClassDescriptor)) return InnerModifierCheckResult.ILLEGAL_POSITION;
if (DescriptorUtils.isInterface(containingDeclaration)) {
return InnerModifierCheckResult.IN_TRAIT;
return InnerModifierCheckResult.IN_INTERFACE;
}
else if (DescriptorUtils.isObject(containingDeclaration)) {
return InnerModifierCheckResult.IN_OBJECT;