Skip to content

Commit f7200c5

Browse files
author
zhourenjian@gmail.com
committed
Fixed bug of generating incorrect @deprecate lines
1 parent b2c3e43 commit f7200c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sources/net.sf.j2s.ajax/generator/net/sf/j2s/ajax/SimpleSource4ObjectiveC.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ private static String wrapString(String s) {
4848
private static void generateAnnotation(Class<?> clazz, StringBuffer source) {
4949
Deprecated annDeprecated = clazz.getAnnotation(Deprecated.class);
5050
if (annDeprecated != null) {
51-
source.append("@");
52-
source.append(annDeprecated.annotationType().getSimpleName());
51+
source.append("// [deprecated]\r\n");
5352
source.append("\r\n");
5453
}
5554
SimpleComment annComment = clazz.getAnnotation(SimpleComment.class);

0 commit comments

Comments
 (0)