We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ea5773 commit 4f3cd17Copy full SHA for 4f3cd17
src/main/java/org/apache/ibatis/parsing/XNode.java
@@ -215,8 +215,6 @@ public Boolean getBooleanAttribute(String name) {
215
216
public Boolean getBooleanAttribute(String name, Boolean def) {
217
String value = attributes.getProperty(name);
218
- // Note that ternary operator will throw NPE in some scenarios, just be careful.
219
- // see this explanation[https://stackoverflow.com/questions/5246776/java-weird-nullpointerexception-in-ternary-operator/5246820#5246820]
220
return value == null ? def : Boolean.valueOf(value);
221
}
222
0 commit comments