comparison dwtx/jface/text/rules/DefaultDamagerRepairer.d @ 136:6dcb0baaa031

Regex removal of throws decls, some instanceof
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 02:20:40 +0200
parents 51e6e63f930e
children b6bad70d540a
comparison
equal deleted inserted replaced
135:65801ad2b265 136:6dcb0baaa031
129 * 129 *
130 * @param offset the offset whose line end offset must be computed 130 * @param offset the offset whose line end offset must be computed
131 * @return the line end offset for the given offset 131 * @return the line end offset for the given offset
132 * @exception BadLocationException if offset is invalid in the current document 132 * @exception BadLocationException if offset is invalid in the current document
133 */ 133 */
134 protected int endOfLineOf(int offset) throws BadLocationException { 134 protected int endOfLineOf(int offset) {
135 135
136 IRegion info= fDocument.getLineInformationOfOffset(offset); 136 IRegion info= fDocument.getLineInformationOfOffset(offset);
137 if (offset <= info.getOffset() + info.getLength()) 137 if (offset <= info.getOffset() + info.getLength())
138 return info.getOffset() + info.getLength(); 138 return info.getOffset() + info.getLength();
139 139