Updated deprecation warning
diff --git a/src/main/java/de/ids_mannheim/korap/query/serialize/PoliqarpPlusTree.java b/src/main/java/de/ids_mannheim/korap/query/serialize/PoliqarpPlusTree.java
index 9f47215..c2620e4 100644
--- a/src/main/java/de/ids_mannheim/korap/query/serialize/PoliqarpPlusTree.java
+++ b/src/main/java/de/ids_mannheim/korap/query/serialize/PoliqarpPlusTree.java
@@ -305,8 +305,7 @@
String type = node.getChild(0).toStringTree(parser);
if (type.equals("split")) referenceGroup.put("operation", "operation:split");
if (type.equals("submatch") || type.equals("shrink")) {
- String warning = "You used the deprecated operator '"+type+"'that has been replaced by 'focus'! " +
- "In future, please use 'focus' when you want to refer to specific classes in your query.";
+ String warning = type + "() is deprecated in favor of focus()";
log.warn(warning);
requestMap.put("warning", warning);
}
@@ -606,4 +605,4 @@
}
}
}
-}
\ No newline at end of file
+}