- Timestamp:
- 06/30/13 12:48:20 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/main/java/com/framsticks/params/ParamCandidate.java
r86 r88 132 132 return; 133 133 } 134 if ( field.has()) {134 if (isPublic(field)) { 135 135 if (setter.has()) { 136 136 throw new ConstructionException().msg("setter and field coexist"); … … 138 138 } 139 139 140 if ( getter.get() == null) {141 throw new ConstructionException().msg("missing getter ");140 if (!getter.has() && !field.has()) { 141 throw new ConstructionException().msg("missing getter or field"); 142 142 } 143 143 } catch (ConstructionException e) { … … 211 211 @Override 212 212 public String toString() { 213 return id ;213 return id + "(" + type.toString() + ")"; 214 214 } 215 215
Note: See TracChangeset
for help on using the changeset viewer.