1.1 --- a/showtodos/src/org/netbeans/modules/showtodos/TodoSourceParsing.java Tue May 07 10:45:38 2013 +0200
1.2 +++ b/showtodos/src/org/netbeans/modules/showtodos/TodoSourceParsing.java Wed May 15 13:41:57 2013 +0200
1.3 @@ -40,6 +40,8 @@
1.4
1.5 import java.util.LinkedList;
1.6 import java.util.List;
1.7 +import java.util.logging.Level;
1.8 +import java.util.logging.Logger;
1.9 import javax.swing.text.BadLocationException;
1.10 import javax.swing.text.Document;
1.11 import org.netbeans.api.lexer.Token;
1.12 @@ -52,7 +54,6 @@
1.13 import org.netbeans.modules.tasklist.todo.settings.Settings;
1.14 import org.openide.text.Annotatable;
1.15 import org.openide.text.Line;
1.16 -import org.openide.util.Exceptions;
1.17
1.18 /**
1.19 *
1.20 @@ -121,7 +122,9 @@
1.21 }
1.22 }
1.23 } catch (BadLocationException e) {
1.24 - Exceptions.printStackTrace(e);
1.25 + // Document was edited during parsing. Can be ignored. See #229772.
1.26 + Logger.getLogger(TodoSourceParsing.class.getName())
1.27 + .log(Level.INFO, null, e);
1.28 }
1.29 }
1.30 return pairsPosition;