Skip to content

Commit

Permalink
crazy bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-eggers committed Jul 14, 2016
1 parent 3bde580 commit 62f5e61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Spring XML Unmarshalling with [XOM](http://www.xom.nu/ "XOM")
<dependency>
<groupId>com.itelg.spring</groupId>
<artifactId>spring-xom-unmarshaller</artifactId>
<version>0.0.2-RELEASE</version>
<version>0.1.0-RELEASE</version>
</dependency>
</dependencies>
```
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>spring-xom-unmarshaller</name>
<description>Spring XML Unmarshalling with XOM</description>
<url>https://github.com/julian-eggers/spring-xom-unmarshaller</url>
<version>0.0.2-RELEASE</version>
<version>0.1.0-RELEASE</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -158,7 +158,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<version>1.3.5.RELEASE</version>
<version>1.3.6.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ private static Class<?> getReturnType(Parser<?> parser)
{
for (Method method : parser.getClass().getDeclaredMethods())
{
if (method.getName().equals("parse"))
if (method.getName().equals("parse") && !method.getReturnType().equals(Object.class))
{
return method.getReturnType();
}
}

return null;
throw new RuntimeException("Invalid parser-implementation!");
}

private static void appendRootTagByType(ParserHolder holder)
Expand Down

0 comments on commit 62f5e61

Please sign in to comment.