[MPLUGIN-242] NullPointerException in MojoClassVisitor.visit() fix
Submitted by: Mikolaj Izdebski git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590811 13f79535-47bb-0310-9956-ffa450edef68master
parent
62561197e8
commit
6d936298d3
|
|
@ -107,8 +107,11 @@ public class MojoClassVisitor
|
|||
public void visit( int version, int access, String name, String signature, String superName, String[] interfaces )
|
||||
{
|
||||
mojoAnnotatedClass = new MojoAnnotatedClass();
|
||||
mojoAnnotatedClass.setClassName( Type.getObjectType( name ).getClassName() ).setParentClassName(
|
||||
Type.getObjectType( superName ).getClassName() );
|
||||
mojoAnnotatedClass.setClassName( Type.getObjectType( name ).getClassName() );
|
||||
if ( superName != null )
|
||||
{
|
||||
mojoAnnotatedClass.setParentClassName( Type.getObjectType( superName ).getClassName() );
|
||||
}
|
||||
}
|
||||
|
||||
public AnnotationVisitor visitAnnotation( String desc, boolean visible )
|
||||
|
|
|
|||
Loading…
Reference in New Issue