summaryrefslogtreecommitdiff
path: root/plugins/java-i18n/src/com/intellij/codeInspection/i18n/folding/I18nMessageGotoDeclarationHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/java-i18n/src/com/intellij/codeInspection/i18n/folding/I18nMessageGotoDeclarationHandler.java')
-rw-r--r--plugins/java-i18n/src/com/intellij/codeInspection/i18n/folding/I18nMessageGotoDeclarationHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/java-i18n/src/com/intellij/codeInspection/i18n/folding/I18nMessageGotoDeclarationHandler.java b/plugins/java-i18n/src/com/intellij/codeInspection/i18n/folding/I18nMessageGotoDeclarationHandler.java
index 592bfbc6051f..155d83767f8b 100644
--- a/plugins/java-i18n/src/com/intellij/codeInspection/i18n/folding/I18nMessageGotoDeclarationHandler.java
+++ b/plugins/java-i18n/src/com/intellij/codeInspection/i18n/folding/I18nMessageGotoDeclarationHandler.java
@@ -39,7 +39,7 @@ public class I18nMessageGotoDeclarationHandler extends GotoDeclarationHandlerBas
int i = 4; //some street magic
while (element != null && i > 0) {
final ASTNode node = element.getNode();
- if (node != null && node.getUserData(KEY) != null) {
+ if (node != null && node.getUserData(KEY) instanceof PropertyFoldingBuilder) {
break;
}
else {