From db39de536209298ed0c09a0e5aaf69c9df5715d3 Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Mon, 23 Jul 2012 15:05:10 -0700 Subject: Tweaks to the lint CLI offsets Change-Id: I20592372d41235b36227a0d36014d77c23c7fc58 --- common/src/com/android/util/PositionXmlParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common') 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 -- cgit v1.1