diff options
Diffstat (limited to 'src/core/lombok/ToString.java')
-rw-r--r-- | src/core/lombok/ToString.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/lombok/ToString.java b/src/core/lombok/ToString.java index e39b9858..c5dcd1ca 100644 --- a/src/core/lombok/ToString.java +++ b/src/core/lombok/ToString.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 The Project Lombok Authors. + * Copyright (C) 2009-2013 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -26,6 +26,9 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import lombok.core.FlagUsageType; +import lombok.core.configuration.ConfigurationKey; + /** * Generates an implementation for the {@code toString} method inherited by all objects, consisting of printing the values of relevant fields. * <p> @@ -35,6 +38,13 @@ import java.lang.annotation.Target; @Retention(RetentionPolicy.SOURCE) public @interface ToString { /** + * lombok configuration: {@code lombok.ToString.flagUsage} = {@code WARNING} | {@code ERROR}. + * + * If set, <em>any</em> usage of {@code @ToString} results in a warning / error. + */ + ConfigurationKey<FlagUsageType> FLAG_USAGE = new ConfigurationKey<FlagUsageType>("lombok.ToString.flagUsage") {}; + + /** * Include the name of each field when printing it. * <strong>default: true</strong> */ |