Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Fixed #6367 Deprecate maven imports without namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
quintesse committed Jul 10, 2016
1 parent a90cbae commit 4ca68a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ else if (that.getQuotedLiteral()!=null) {
namespace = ModuleUtil.getNamespaceFromUri(nameString);
name = asList(ModuleUtil.getModuleNameFromUri(nameString).split("\\."));
node = that.getQuotedLiteral();
if ("maven".equals(namespace) && !nameString.startsWith("maven:")) {
node.addUsageWarning(Warning.missingImportPrefix, "use of old style Maven imports is deprecated, prefix with 'maven:'");
}
}
else {
namespace = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ public enum Warning {
disjointEquals,
disjointContainment,
redundantNarrowing,
redundantIteration
redundantIteration,
missingImportPrefix
}

0 comments on commit 4ca68a0

Please sign in to comment.