You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2016/04/26 07:48:42 UTC
[32/38] logging-log4j2 git commit: LOG4J2-1373 added comment on
@since versioning convention in generated code
LOG4J2-1373 added comment on @since versioning convention in generated code
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/be8779b9
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/be8779b9
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/be8779b9
Branch: refs/heads/master
Commit: be8779b9c8f2265f3cfe34229ee461261f40a71e
Parents: 31c76c7
Author: rpopma <rp...@apache.org>
Authored: Sat Apr 23 15:42:24 2016 +0900
Committer: Ralph Goers <rg...@nextiva.com>
Committed: Mon Apr 25 21:30:30 2016 -0700
----------------------------------------------------------------------
.../main/java/org/apache/logging/log4j/core/tools/Generate.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/be8779b9/log4j-core/src/main/java/org/apache/logging/log4j/core/tools/Generate.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/tools/Generate.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/tools/Generate.java
index c86004d..b1ca676 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/tools/Generate.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/tools/Generate.java
@@ -44,6 +44,9 @@ import java.util.List;
* DEFCON3=550}
*/
public final class Generate {
+ // Implementation note:
+ // The generated code is in the user's namespace which has its own versioning scheme, so
+ // any @since tags in the generated code deliberately mention "Log4j-2.x" rather than just the log4j version number.
static final String PACKAGE_DECLARATION = "package %s;%n%n";