aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/Cleanup.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2014-01-18 20:26:08 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2014-01-18 20:26:08 +0100
commit5767628efeb66644827f89861425ff173803b9ad (patch)
treec15dd4b21eeeb5969b54f2f6a3323c2c46171262 /src/core/lombok/Cleanup.java
parent08868a2076f827958f1f3b89f084abbc32c3f423 (diff)
downloadlombok-5767628efeb66644827f89861425ff173803b9ad.tar.gz
lombok-5767628efeb66644827f89861425ff173803b9ad.tar.bz2
lombok-5767628efeb66644827f89861425ff173803b9ad.zip
[configuration] Moved ALL ConfigurationKey constants into 'ConfigurationKeys'; that bug where fields in annotation defs causes issues is too endemic to try and work around these.
Diffstat (limited to 'src/core/lombok/Cleanup.java')
-rw-r--r--src/core/lombok/Cleanup.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/core/lombok/Cleanup.java b/src/core/lombok/Cleanup.java
index 77a1ac87..4b5c6fc2 100644
--- a/src/core/lombok/Cleanup.java
+++ b/src/core/lombok/Cleanup.java
@@ -26,9 +26,6 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
-import lombok.core.FlagUsageType;
-import lombok.core.configuration.ConfigurationKey;
-
/**
* Ensures the variable declaration that you annotate will be cleaned up by calling its close method, regardless
* of what happens. Implemented by wrapping all statements following the local variable declaration to the
@@ -75,13 +72,6 @@ import lombok.core.configuration.ConfigurationKey;
@Target(ElementType.LOCAL_VARIABLE)
@Retention(RetentionPolicy.SOURCE)
public @interface Cleanup {
- /**
- * lombok configuration: {@code lombok.Cleanup.flagUsage} = {@code WARNING} | {@code ERROR}.
- *
- * If set, <em>any</em> usage of {@code @Cleanup} results in a warning / error.
- */
- ConfigurationKey<FlagUsageType> FLAG_USAGE = new ConfigurationKey<FlagUsageType>("lombok.Cleanup.flagUsage") {};
-
/** The name of the method that cleans up the resource. By default, 'close'. The method must not have any parameters. */
String value() default "close";
}