astvariabledeclaratoridtest.java
来自「检查Java程序漏洞」· Java 代码 · 共 22 行
JAVA
22 行
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html*/package test.net.sourceforge.pmd.ast;import junit.framework.TestCase;import net.sourceforge.pmd.ast.ASTBlock;import net.sourceforge.pmd.ast.ASTTryStatement;import net.sourceforge.pmd.ast.ASTVariableDeclaratorId;public class ASTVariableDeclaratorIdTest extends TestCase { public void testIsExceptionBlockParameter() { ASTTryStatement tryNode = new ASTTryStatement(1); ASTBlock block = new ASTBlock(2); ASTVariableDeclaratorId v = new ASTVariableDeclaratorId(3); v.jjtSetParent(block); block.jjtSetParent(tryNode); assertTrue(v.isExceptionBlockParameter()); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?