51 lines
1.3 KiB
Diff
51 lines
1.3 KiB
Diff
From 4a9fc6a7992e8623956dee6c8cebd0b224968418 Mon Sep 17 00:00:00 2001
|
|
From: Zbynek Konecny <zbynek1729@gmail.com>
|
|
Date: Wed, 20 Apr 2022 17:01:00 +0200
|
|
Subject: [PATCH 1/2] Generate max. one deprecated annotation per method
|
|
|
|
---
|
|
.../resources/templates/gwt/SimpleCharStream.template | 10 ++++------
|
|
1 file changed, 4 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/src/main/resources/templates/gwt/SimpleCharStream.template b/src/main/resources/templates/gwt/SimpleCharStream.template
|
|
index 9c88437..a1de1e3 100644
|
|
--- a/src/main/resources/templates/gwt/SimpleCharStream.template
|
|
+++ b/src/main/resources/templates/gwt/SimpleCharStream.template
|
|
@@ -215,14 +215,13 @@ ${SUPPORT_CLASS_VISIBILITY_PUBLIC?public :}class SimpleCharStream
|
|
return c;
|
|
}
|
|
|
|
-#if GENERATE_ANNOTATIONS
|
|
- @Deprecated
|
|
-#fi
|
|
/**
|
|
* @deprecated
|
|
* @see #getEndColumn
|
|
*/
|
|
+#if GENERATE_ANNOTATIONS
|
|
@Deprecated
|
|
+#fi
|
|
${PREFIX}public int getColumn() {
|
|
#if KEEP_LINE_COLUMN
|
|
return bufcolumn[bufpos];
|
|
@@ -231,14 +230,13 @@ ${SUPPORT_CLASS_VISIBILITY_PUBLIC?public :}class SimpleCharStream
|
|
#fi
|
|
}
|
|
|
|
-#if GENERATE_ANNOTATIONS
|
|
- @Deprecated
|
|
-#fi
|
|
/**
|
|
* @deprecated
|
|
* @see #getEndLine
|
|
*/
|
|
+#if GENERATE_ANNOTATIONS
|
|
@Deprecated
|
|
+#fi
|
|
${PREFIX}public int getLine() {
|
|
#if KEEP_LINE_COLUMN
|
|
return bufline[bufpos];
|
|
--
|
|
2.36.0
|
|
|