我想知道为什么assert关键字在Java中如此不足?我几乎从未见过他们用过,但我认为他们是一个好主意。当然,我更喜欢的简洁: assert param != null : "Param cannot be null";
到的详细程度: if (param == null) {
throw new IllegalArgumentException("Param cannot be n
我创建了一个SamlAssertion实例,并向其添加了授权声明和属性声明,现在我想打印出XML,以便可以执行HTTP发布,但不能所有的断言都被输出。我错过了什么(我确定它是骨头的)? 这里是我使用的代码: // Add the Statements to the SAML Assertion
samlAssert.Statements.Add(samlAuthStatement);