diff --git a/org.springframework.test/src/main/java/org/springframework/test/annotation/DirtiesContext.java b/org.springframework.test/src/main/java/org/springframework/test/annotation/DirtiesContext.java
index a21e998343..e129e49428 100644
--- a/org.springframework.test/src/main/java/org/springframework/test/annotation/DirtiesContext.java
+++ b/org.springframework.test/src/main/java/org/springframework/test/annotation/DirtiesContext.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2009 the original author or authors.
+ * Copyright 2002-2010 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.
@@ -57,18 +57,14 @@ import java.lang.annotation.Target;
@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
-@Target( { ElementType.TYPE, ElementType.METHOD })
+@Target({ElementType.TYPE, ElementType.METHOD})
public @interface DirtiesContext {
/**
- * Defines modes which determine how
- * @DirtiesContext
is interpreted when used to annotate a
- * test class.
- *
- * @author Sam Brannen
- * @since 3.0
+ * Defines modes which determine how @DirtiesContext
+ * is interpreted when used to annotate a test class.
*/
- public static enum ClassMode {
+ static enum ClassMode {
/**
* The associated ApplicationContext
will be marked as
@@ -80,22 +76,18 @@ public @interface DirtiesContext {
* The associated ApplicationContext
will be marked as
* dirty after each test method in the class.
*/
- AFTER_EACH_TEST_METHOD;
+ AFTER_EACH_TEST_METHOD
}
/**
* The mode to use when a test class is annotated with
* @DirtiesContext
.
- *
- * Defaults to {@link ClassMode#AFTER_CLASS AFTER_CLASS}. - *
- *- * Note: setting the class mode on an annotated test method has no meaning, + *
Defaults to {@link ClassMode#AFTER_CLASS AFTER_CLASS}. + *
Note: Setting the class mode on an annotated test method has no meaning,
* since the mere presence of the @DirtiesContext
* annotation on a test method is sufficient.
- *