Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lighthouse#2273: Stop Fixtures attempting to set static (Map) fields #1281

Merged
Prev Previous commit
Next Next commit
lighthouse#2273: Fix code formatting
tazmaniax committed Nov 15, 2018
commit 05206b2c29c740246b46f15c972cb2b27c29a633
4 changes: 2 additions & 2 deletions framework/src/play/test/Fixtures.java
Original file line number Diff line number Diff line change
@@ -266,14 +266,14 @@ public static void loadModels(boolean loadAsTemplate, String name) {

Model model = (Model) Binder.bind(rootParamNode, "object", cType, cType, annotations);
for (Field f : model.getClass().getFields()) {
if (!Modifier.isStatic(f.getModifiers())) {
if (!Modifier.isStatic(f.getModifiers())) {
if (f.getType().isAssignableFrom(Map.class)) {
f.set(model, objects.get(key).get(f.getName()));
}
if (f.getType().equals(byte[].class)) {
f.set(model, objects.get(key).get(f.getName()));
}
}
}
}
model._save();