Skip to content

Commit

Permalink
Merge pull request #1 from stapel/stapel-patch-1
Browse files Browse the repository at this point in the history
Skip bridge-methods for POJO-getter/setter aaberg#314
  • Loading branch information
stapel authored Jan 27, 2019
2 parents 01d3490 + c6e28c3 commit 5f20671
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/org/sql2o/reflection/PojoMetadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ private PropertyAndFieldInfo initializePropertyInfo() {

// prepare methods. Methods will override fields, if both exists.
for (Method m : theClass.getDeclaredMethods()) {

if(m.isBridge()) {
continue;
}
if (m.getName().startsWith("get")) {
String propertyName = m.getName().substring(3);
if (caseSensitive) {
Expand Down

0 comments on commit 5f20671

Please sign in to comment.