TextUtils { public static boolean isLineBreak( char c ) { return c == '\n' || c == '\r'; } private  TextUtils(); static String removeComments( String line ); static boolean isLineBreak( char c ); static SelectionRange findRegionFromSelection( String fullText, int selectionOffset, int selectionLength );  }
@Test public void testIsLineBreak() { Assert.assertTrue( isLineBreak( '\n' )); Assert.assertTrue( isLineBreak( '\r' )); Assert.assertFalse( isLineBreak( 'c' )); }