File tree Expand file tree Collapse file tree
sources/net.sf.j2s.core/src/net/sf/j2s/core/astvisitors Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2727,6 +2727,9 @@ public void endVisit(TypeDeclaration node) {
27272727// //buffer.append(fullClassName);
27282728// buffer.append(".");
27292729 VariableDeclarationFragment vdf = (VariableDeclarationFragment ) fragments .get (j );
2730+ if ("serialVersionUID" .equals (vdf .getName ().getIdentifier ())) {
2731+ continue ;
2732+ }
27302733 Expression initializer = vdf .getInitializer ();
27312734 refVisitor .setReferenced (false );
27322735 if (initializer != null ) {
@@ -2794,6 +2797,9 @@ public void endVisit(TypeDeclaration node) {
27942797 List fragments = field .fragments ();
27952798 for (int j = 0 ; j < fragments .size (); j ++) {
27962799 VariableDeclarationFragment vdf = (VariableDeclarationFragment ) fragments .get (j );
2800+ if ("serialVersionUID" .equals (vdf .getName ().getIdentifier ())) {
2801+ continue ;
2802+ }
27972803 Expression initializer = vdf .getInitializer ();
27982804 refVisitor .setReferenced (false );
27992805 if (initializer != null ) {
You can’t perform that action at this time.
0 commit comments