Commit 636898f9 authored by Phillip Webb's avatar Phillip Webb

Polish

parent 5922cfa4
......@@ -32,7 +32,7 @@ import com.google.gson.Gson;
/**
* Configuration for HTTP Message converters that use Gson
*
* @author awilkinson
* @author Andy Wilkinson
* @since 1.2.2
*/
@Configuration
......
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -252,7 +252,7 @@ public class JacksonAutoConfigurationTests {
public void disableDeserializationFeature() throws Exception {
this.context.register(JacksonAutoConfiguration.class);
EnvironmentTestUtils.addEnvironment(this.context,
"spring.jackson.deserialization.fail_on_unknown_properties:false");
"spring.jackson.deserialization.fail-on-unknown-properties:false");
this.context.refresh();
ObjectMapper mapper = this.context.getBean(ObjectMapper.class);
assertTrue(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES.enabledByDefault());
......
......@@ -38,9 +38,7 @@ public class JndiPropertiesHidingClassLoader extends ClassLoader {
if ("jndi.properties".equals(name)) {
return Collections.enumeration(Collections.<URL> emptyList());
}
else {
return super.getResources(name);
}
return super.getResources(name);
}
}
\ No newline at end of file
}
......@@ -91,5 +91,7 @@ public class TestableInitialContextFactory implements InitialContextFactory {
public void clearAll() {
this.bindings.clear();
}
}
}
\ No newline at end of file
}
......@@ -274,7 +274,6 @@ a specific command line switch (e.g. `java -jar app.jar --name="Spring"`).
[[boot-features-external-config-random-values]]
=== Configuring random values
The `RandomValuePropertySource` is useful for injecting random values (e.g. into secrets
or test cases). It can produce integers, longs or strings, e.g.
......
......@@ -15,9 +15,9 @@
*/
public class BootRunResourcesApplication {
public static void main(String[] args) {
ClassLoader classLoader = BootRunResourcesApplication.class.getClassLoader();
ClassLoader classLoader = BootRunResourcesApplication.class.getClassLoader();
System.out.println(classLoader.getResource("test.txt"));
}
......
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -55,4 +55,5 @@ public class SampleRedisApplicationTests {
}
return (ex.getCause() == null || redisServerRunning(ex.getCause()));
}
}
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment