Skip to content

Commit a91e9ec

Browse files
committed
a reformat code
1 parent a90b952 commit a91e9ec

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

approvaltests-util/src/main/java/com/spun/util/velocity/ServletContextLoader.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public void init(ExtProperties configuration)
4747
}
4848
//My_System.variable("paths", paths);
4949
}
50-
5150
/**
5251
* Get an InputStream so that the Runtime can build a
5352
* template with it.
@@ -56,7 +55,8 @@ public void init(ExtProperties configuration)
5655
* @return InputStream containing the template
5756
*/
5857
@Override
59-
public Reader getResourceReader(String source, String encoding) throws ResourceNotFoundException {
58+
public Reader getResourceReader(String source, String encoding) throws ResourceNotFoundException
59+
{
6060
if (source == null || source.length() == 0)
6161
{ return null; }
6262
/* since the paths always ends in '/',
@@ -76,9 +76,8 @@ public Reader getResourceReader(String source, String encoding) throws ResourceN
7676
}
7777
}
7878
throw new ResourceNotFoundException(
79-
String.format("Template '%s' not found from %s", source, Arrays.asList(paths)));
79+
String.format("Template '%s' not found from %s", source, Arrays.asList(paths)));
8080
}
81-
8281
/**
8382
* Defaults to return false.
8483
*/

approvaltests-util/src/main/java/com/spun/util/velocity/StringResourceLoader.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@
3232
public class StringResourceLoader extends ResourceLoader
3333
{
3434
@Override
35-
public void init(ExtProperties extProperties) {
36-
35+
public void init(ExtProperties extProperties)
36+
{
3737
}
38-
3938
@Override
40-
public Reader getResourceReader(String source, String encoding) {
39+
public Reader getResourceReader(String source, String encoding)
40+
{
4141
return new StringReader(source);
4242
}
43-
4443
public boolean isSourceModified(Resource resource)
4544
{
4645
return true;

approvaltests-util/src/main/java/com/spun/util/velocity/TestableUberspect.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public class TestableUberspect implements Uberspect
3636
/**
3737
* the default Velocity introspector
3838
*/
39-
private static boolean beKindToNulls = false;
40-
private static Logger log = LoggerFactory.getLogger(TestableUberspect.class);
41-
private static Introspector introspector = new Introspector(log);
39+
private static boolean beKindToNulls = false;
40+
private static Logger log = LoggerFactory.getLogger(TestableUberspect.class);
41+
private static Introspector introspector = new Introspector(log);
4242
/**
4343
* init - does nothing - we need to have setRuntimeLogger
4444
* called before getting our introspector, as the default
@@ -202,12 +202,11 @@ public String getMethodName()
202202
{
203203
return method.getName();
204204
}
205-
206205
@Override
207-
public Method getMethod() {
206+
public Method getMethod()
207+
{
208208
return method;
209209
}
210-
211210
public Class<?> getReturnType()
212211
{
213212
return method.getReturnType();

approvaltests-util/src/main/java/com/spun/util/velocity/VelocityParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static Writer parse(String template, Properties props, ContextAware proce
7777
try
7878
{
7979
props.put("directive.foreach.counter.initial.value", "0");
80-
// props.put(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS, NullLogChute.class.getName());
80+
// props.put(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS, NullLogChute.class.getName());
8181
VelocityEngine engine = initializeEngine(props);
8282
VelocityContext context = new VelocityContext();
8383
Template velocityTemplate = engine.getTemplate(template);

0 commit comments

Comments
 (0)