106107108109110111112113114115116
} public void testInvalidEmptyStatement() { Node n = new Node(Token.EMPTY, new Node(Token.TRUE)); expectInvalid(n, Check.STATEMENT); n.detachChildren(); expectValid(n, Check.STATEMENT); } private void valid(String code) { testSame(code);
103104105106107108109110111112113
7172737475767778798081
if (!(o instanceof OMElement)) { continue; } OMElement child = (OMElement) o; if (CommonsConstants.ELE_DESCRIPTION.equals(child.getLocalName())) { omElementHelper.detachChildren(child); String des = description.getDescription(); if (des != null && !"".equals(des.trim())) { child.setText(des); } }