diff options
author | Tor Norbye <tnorbye@google.com> | 2012-06-29 21:01:19 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-07-02 07:29:11 -0700 |
commit | d4e9d5db4dd1f67c77c4c8b42683494e013493a5 (patch) | |
tree | 521928e513cdc63932cbdd887814f1cb2b0aa6fd /lint/cli | |
parent | 2b78fa53ccd6b5422c66b33ff35db3a0330f2c38 (diff) | |
download | sdk-d4e9d5db4dd1f67c77c4c8b42683494e013493a5.zip sdk-d4e9d5db4dd1f67c77c4c8b42683494e013493a5.tar.gz sdk-d4e9d5db4dd1f67c77c4c8b42683494e013493a5.tar.bz2 |
Fix lint attribute positions in the CLI
Change-Id: I795a93b5d4b3041ba9892d5d3eb226de1873a88c
Diffstat (limited to 'lint/cli')
-rw-r--r-- | lint/cli/src/com/android/tools/lint/LintCliXmlParser.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lint/cli/src/com/android/tools/lint/LintCliXmlParser.java b/lint/cli/src/com/android/tools/lint/LintCliXmlParser.java index 24149b3..8611019 100644 --- a/lint/cli/src/com/android/tools/lint/LintCliXmlParser.java +++ b/lint/cli/src/com/android/tools/lint/LintCliXmlParser.java @@ -72,7 +72,7 @@ public class LintCliXmlParser extends PositionXmlParser implements IDomParser { @Override public @NonNull Location getLocation(@NonNull XmlContext context, @NonNull Node node) { - OffsetPosition pos = (OffsetPosition) getPosition(node, 0, 0); + OffsetPosition pos = (OffsetPosition) getPosition(node, -1, -1); if (pos != null) { return Location.create(context.file, pos, (OffsetPosition) pos.getEnd()); } |