improve debugging experience

This commit is contained in:
Gregory.Shrago
2014-03-27 22:10:16 +04:00
parent 97ce34b75c
commit 87ef3f9d97
2 changed files with 10 additions and 2 deletions
@@ -543,7 +543,7 @@ public class MultiHostRegistrarImpl implements MultiHostRegistrar, ModificationT
@Override
public String toString() {
return result.toString();
return String.valueOf(result);
}
@NotNull
@@ -37,8 +37,8 @@ public class InjectionPlace {
}
};
private final ElementPattern<PsiElement> myElementPattern;
private final boolean myEnabled;
private final ElementPattern<PsiElement> myElementPattern;
public InjectionPlace(final ElementPattern<PsiElement> myElementPattern, final boolean enabled) {
@@ -78,4 +78,12 @@ public class InjectionPlace {
public int hashCode() {
return myElementPattern.hashCode();
}
@Override
public String toString() {
return "InjectionPlace{" +
(myEnabled ? "+ " : "- ") +
myElementPattern +
'}';
}
}