We keep the @Override on the same line round these parts.

This commit is contained in:
Michael Bayne
2011-07-17 08:38:20 -07:00
parent 3122c2c770
commit 7255cb7c09
@@ -240,8 +240,7 @@ public class Template
final Method m = getMethod(key.cclass, key.name);
if (m != null) {
return new VariableFetcher() {
@Override
public Object get (Object ctx, String name) throws Exception {
@Override public Object get (Object ctx, String name) throws Exception {
return m.invoke(ctx);
}
};
@@ -250,8 +249,7 @@ public class Template
final Field f = getField(key.cclass, key.name);
if (f != null) {
return new VariableFetcher() {
@Override
public Object get (Object ctx, String name) throws Exception {
@Override public Object get (Object ctx, String name) throws Exception {
return f.get(ctx);
}
};
@@ -375,15 +373,13 @@ public class Template
}
protected static final VariableFetcher MAP_FETCHER = new VariableFetcher() {
@Override
public Object get (Object ctx, String name) throws Exception {
@Override public Object get (Object ctx, String name) throws Exception {
return ((Map<?,?>)ctx).get(name);
}
};
protected static final VariableFetcher THIS_FETCHER = new VariableFetcher() {
@Override
public Object get (Object ctx, String name) throws Exception {
@Override public Object get (Object ctx, String name) throws Exception {
return ctx;
}
};