Skip to content

Commit

Permalink
jaxb2-plugins: generated methods should be excluded from normal jaxb …
Browse files Browse the repository at this point in the history
…processing

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>
  • Loading branch information
KetothXupack committed Nov 7, 2013
1 parent 57ec56c commit 40258c3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.xml.sax.ErrorHandler;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlTransient;
import java.io.StringWriter;
import java.util.Collection;
import java.util.Map;
Expand Down Expand Up @@ -131,6 +132,7 @@ private static void generateDescriptor(final JDefinedClass theClass) {
.arg(JExpr._null())
.arg(JExpr._new(codeModel.ref(PasstroughGetter.class).narrow(theClass)).arg(JExpr._this())));
instancedDescriptorGetter.annotate(Override.class);
instancedDescriptorGetter.annotate(XmlTransient.class);

final JClass typeReference = codeModel.ref(TypeReference.class);
final JInvocation thisTypeRef = JExpr._new(codeModel.anonymousClass(typeReference.narrow(theClass)));
Expand Down

0 comments on commit 40258c3

Please sign in to comment.