Skip to content

Commit

Permalink
null handling; add "fail" mode for primitive arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Feb 9, 2017
1 parent 4033c89 commit 6636ea2
Show file tree
Hide file tree
Showing 4 changed files with 174 additions and 83 deletions.
Expand Up @@ -17,11 +17,19 @@ public class NullsFailProvider
protected final PropertyName _name; protected final PropertyName _name;
protected final JavaType _type; protected final JavaType _type;


public NullsFailProvider(PropertyName name, JavaType type) { protected NullsFailProvider(PropertyName name, JavaType type) {
_name = name; _name = name;
_type = type; _type = type;
} }


public static NullsFailProvider constructForProperty(BeanProperty prop) {
return new NullsFailProvider(prop.getFullName(), prop.getType());
}

public static NullsFailProvider constructForRootValue(JavaType t) {
return new NullsFailProvider(null, t);
}

@Override @Override
public AccessPattern getNullAccessPattern() { public AccessPattern getNullAccessPattern() {
// Must be called every time to effect the exception... // Must be called every time to effect the exception...
Expand Down

0 comments on commit 6636ea2

Please sign in to comment.