diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-03-23 01:16:17 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-03-23 01:17:28 +0100 |
commit | 164beb36becba6be897b4bd67287ce9fccc22fe9 (patch) | |
tree | 113cf0427a32825931af3a41743d611ac36798c2 /src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java | |
parent | ae54fa51ac6162a53dc0ac424d0ba17cdac89ba3 (diff) | |
download | lombok-164beb36becba6be897b4bd67287ce9fccc22fe9.tar.gz lombok-164beb36becba6be897b4bd67287ce9fccc22fe9.tar.bz2 lombok-164beb36becba6be897b4bd67287ce9fccc22fe9.zip |
Fixed issue #1342: builder now marks generated stuff as deprecated if appropriate.
Diffstat (limited to 'src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java')
-rw-r--r-- | src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java b/src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java index 4cb41d4f..bc779dab 100644 --- a/src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java +++ b/src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 The Project Lombok Authors. + * Copyright (C) 2015-2017 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 @@ -132,6 +132,10 @@ public class EclipseSingularsRecipes { } } + public ASTNode getSource() { + return source; + } + public EclipseNode getAnnotation() { return annotation; } @@ -211,7 +215,7 @@ public class EclipseSingularsRecipes { } public abstract List<EclipseNode> generateFields(SingularData data, EclipseNode builderType); - public abstract void generateMethods(SingularData data, EclipseNode builderType, boolean fluent, boolean chain); + public abstract void generateMethods(SingularData data, boolean deprecate, EclipseNode builderType, boolean fluent, boolean chain); public abstract void appendBuildCode(SingularData data, EclipseNode builderType, List<Statement> statements, char[] targetVariableName); public boolean requiresCleaning() { |