aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-07-23 15:05:10 -0700
committerTor Norbye <tnorbye@google.com>2012-07-23 15:17:35 -0700
commitdb39de536209298ed0c09a0e5aaf69c9df5715d3 (patch)
treee3806402e216fc1f5c2495872a641aa84abee2c9 /common
parent099c517c0d151cfb096c829e95737aa81b81ee1c (diff)
downloadsdk-db39de536209298ed0c09a0e5aaf69c9df5715d3.zip
sdk-db39de536209298ed0c09a0e5aaf69c9df5715d3.tar.gz
sdk-db39de536209298ed0c09a0e5aaf69c9df5715d3.tar.bz2
Tweaks to the lint CLI offsets
Change-Id: I20592372d41235b36227a0d36014d77c23c7fc58
Diffstat (limited to 'common')
-rw-r--r--common/src/com/android/util/PositionXmlParser.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/src/com/android/util/PositionXmlParser.java b/common/src/com/android/util/PositionXmlParser.java
index 08aeb0a..fe22f58 100644
--- a/common/src/com/android/util/PositionXmlParser.java
+++ b/common/src/com/android/util/PositionXmlParser.java
@@ -356,7 +356,8 @@ public class PositionXmlParser {
Position attributePosition = createPosition(line, column, index);
// Also set end range for retrieval in getLocation
- attributePosition.setEnd(createPosition(line, column, matcher.end()));
+ attributePosition.setEnd(createPosition(line, column + matcher.end() - index,
+ matcher.end()));
return attributePosition;
} else {
// No regexp match either: just fall back to element position