From 2d68b726b5ac4d788c44bea58e9e6cd87c4ad5a0 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Sun, 12 Jun 2011 06:56:17 +0000 Subject: [PATCH] Add syntax highlighting to Javadoc where necessary Issue: SPR-8426 --- .../context/annotation/PropertySource.java | 8 ++++---- .../org/springframework/core/env/AbstractEnvironment.java | 4 ++-- .../org/springframework/mock/env/MockPropertySource.java | 2 +- .../web/servlet/config/annotation/EnableWebMvc.java | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/org.springframework.context/src/main/java/org/springframework/context/annotation/PropertySource.java b/org.springframework.context/src/main/java/org/springframework/context/annotation/PropertySource.java index ead2968c897..f1fb183f613 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/annotation/PropertySource.java +++ b/org.springframework.context/src/main/java/org/springframework/context/annotation/PropertySource.java @@ -34,7 +34,7 @@ import java.lang.annotation.Target; * uses {@code @PropertySource} to contribute {@code app.properties} to the * {@code Environment}'s set of {@code PropertySources}. * - *
+ * 
  * @Configuration
  * @PropertySource("classpath:/com/myco/app.properties")
  * public class AppConfig {
@@ -62,7 +62,7 @@ import java.lang.annotation.Target;
  * {@code b.properties}, consider the following two configuration classes
  * that reference them with {@code @PropertySource} annotations:
  *
- * 
+ * 
  * @Configuration
  * @PropertySource("classpath:/com/myco/a.properties")
  * public class ConfigA { }
@@ -74,7 +74,7 @@ import java.lang.annotation.Target;
  *
  * The override ordering depends on the order in which these classes are registered
  * with the application context.
- * 
+ * 
  * AnnotationConfigApplicationContext ctx =
  *     new AnnotationConfigApplicationContext();
  * ctx.register(ConfigA.class);
@@ -92,7 +92,7 @@ import java.lang.annotation.Target;
  * the ordering is difficult to predict.  In such cases - and if overriding is important -
  * it is recommended that the user fall back to using the programmatic PropertySource API.
  * See {@link org.springframework.core.env.ConfigurableEnvironment ConfigurableEnvironment}
- * and * {@link org.springframework.core.env.MutablePropertySources MutablePropertySources}
+ * and {@link org.springframework.core.env.MutablePropertySources MutablePropertySources}
  * Javadoc for details.
  *
  * @author Chris Beams
diff --git a/org.springframework.core/src/main/java/org/springframework/core/env/AbstractEnvironment.java b/org.springframework.core/src/main/java/org/springframework/core/env/AbstractEnvironment.java
index 56c779a8580..08eba615e2b 100644
--- a/org.springframework.core/src/main/java/org/springframework/core/env/AbstractEnvironment.java
+++ b/org.springframework.core/src/main/java/org/springframework/core/env/AbstractEnvironment.java
@@ -115,7 +115,7 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
 	 * "D". If the {@code Level2Environment} subclass wished to give property sources C
 	 * and D higher precedence than A and B, it could simply call
 	 * {@code super.customizePropertySources} after, rather than before adding its own:
-	 * 
+	 * 
 	 * public class Level2Environment extends Level1Environment {
 	 *     @Override
 	 *     protected void customizePropertySources(MutablePropertySources propertySources) {
@@ -138,7 +138,7 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
 	 * property sources via the {@link #getPropertySources()} accessor, typically within
 	 * an {@link org.springframework.context.ApplicationContextInitializer
 	 * ApplicationContextInitializer}. For example:
-	 * 
+	 * 
 	 * ConfigurableEnvironment env = new StandardEnvironment();
 	 * env.getPropertySources().addLast(new PropertySourceX(...));
 	 * 
diff --git a/org.springframework.test/src/main/java/org/springframework/mock/env/MockPropertySource.java b/org.springframework.test/src/main/java/org/springframework/mock/env/MockPropertySource.java index 45f8b61ad71..46501ad5f13 100644 --- a/org.springframework.test/src/main/java/org/springframework/mock/env/MockPropertySource.java +++ b/org.springframework.test/src/main/java/org/springframework/mock/env/MockPropertySource.java @@ -28,7 +28,7 @@ import org.springframework.core.env.PropertySource; * * The {@link #setProperty} and {@link #withProperty} methods are exposed for * convenience, for example: - *
+ * 
  * {@code
  *   PropertySource source = new MockPropertySource().withProperty("foo", "bar");
  * }
diff --git a/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/annotation/EnableWebMvc.java b/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/annotation/EnableWebMvc.java
index 881204f283b..f87e049ec19 100644
--- a/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/annotation/EnableWebMvc.java
+++ b/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/annotation/EnableWebMvc.java
@@ -25,13 +25,13 @@ import org.springframework.web.servlet.DispatcherServlet;
 /**
  * Enables default Spring MVC configuration and registers Spring MVC infrastructure components expected by the
  * {@link DispatcherServlet}. Add this annotation to an application @{@link Configuration} class. It will in
- * turn import the @{@link Configuration} class {@link WebMvcConfiguration}, which provides default Spring MVC 
+ * turn import the @{@link Configuration} class {@link WebMvcConfiguration}, which provides default Spring MVC
  * configuration.
- * 
+ * 
  * @Configuration
  * @EnableWebMvc
  * @ComponentScan(
- *	basePackageClasses = { MyConfiguration.class },
+ * 	basePackageClasses = { MyConfiguration.class },
  * 	excludeFilters = { @Filter(type = FilterType.ANNOTATION, value = Configuration.class) }
  * )
  * public class MyConfiguration {
@@ -42,7 +42,7 @@ import org.springframework.web.servlet.DispatcherServlet;
  * {@link WebMvcConfigurerAdapter} overriding specific methods. Your @{@link Configuration} class and any other
  * Spring bean that implements {@link WebMvcConfigurer} will be detected and given an opportunity to customize 
  * the default Spring MVC configuration through the callback methods on the {@link WebMvcConfigurer} interface.
- * 
+ * 
  * @Configuration
  * @EnableWebMvc
  * @ComponentScan(