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.
2 parents 260dba8 + 239cdae commit 55436a4Copy full SHA for 55436a4
src/main/java/org/apache/ibatis/builder/xml/XMLConfigBuilder.java
@@ -396,12 +396,11 @@ private void mapperElement(XNode parent) throws Exception {
396
private boolean isSpecifiedEnvironment(String id) {
397
if (environment == null) {
398
throw new BuilderException("No environment specified.");
399
- } else if (id == null) {
+ }
400
+ if (id == null) {
401
throw new BuilderException("Environment requires an id attribute.");
- } else if (environment.equals(id)) {
402
- return true;
403
}
404
- return false;
+ return environment.equals(id);
405
406
407
0 commit comments