Skip to content

Commit 21377c9

Browse files
committed
Trivial adjustment and license year updates.
1 parent f9fabc3 commit 21377c9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/main/java/org/apache/ibatis/builder/xml/XMLMapperBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2017 the original author or authors.
2+
* Copyright 2009-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -117,7 +117,7 @@ private void configurationElement(XNode context) {
117117
sqlElement(context.evalNodes("/mapper/sql"));
118118
buildStatementFromContext(context.evalNodes("select|insert|update|delete"));
119119
} catch (Exception e) {
120-
throw new BuilderException("Error parsing Mapper XML.The XML location is " + resource + " Cause: " + e, e);
120+
throw new BuilderException("Error parsing Mapper XML. The XML location is '" + resource + "'. Cause: " + e, e);
121121
}
122122
}
123123

src/test/java/org/apache/ibatis/builder/ProblemMapper.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2010-2016 the original author or authors.
4+
Copyright 2009-2018 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.

src/test/java/org/apache/ibatis/builder/XmlMapperBuilderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2017 the original author or authors.
2+
* Copyright 2009-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -175,7 +175,7 @@ public void useCacheRefNamespaceIsUndefined() {
175175
@Test
176176
public void shouldFailedLoadXMLMapperFile() throws Exception {
177177
expectedEx.expect(BuilderException.class);
178-
expectedEx.expectMessage("Error parsing Mapper XML.The XML location is org/apache/ibatis/builder/ProblemMapper.xml");
178+
expectedEx.expectMessage("Error parsing Mapper XML. The XML location is 'org/apache/ibatis/builder/ProblemMapper.xml'");
179179
Configuration configuration = new Configuration();
180180
String resource = "org/apache/ibatis/builder/ProblemMapper.xml";
181181
InputStream inputStream = Resources.getResourceAsStream(resource);

0 commit comments

Comments
 (0)