Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.commonjava.maven.galley.maven.type;
 
 import java.util.Map;
 
 import  javax.enterprise.context.ApplicationScoped;
 
@ApplicationScoped
public class StandardTypeMapper
    implements TypeMapper
    private final Map<StringTypeMappingmappings = Collections.unmodifiableMapnew HashMap<StringTypeMapping>()
    {
        private static final long serialVersionUID = 1L;
        {
            put"ejb"new TypeMapping"jar" ) );
            put"ejb-client"new TypeMapping"jar""client" ) );
            put"test-jar"new TypeMapping"jar""tests" ) );
            put"maven-plugin"new TypeMapping"jar" ) );
            put"java-source"new TypeMapping"jar""sources" ) );
            put"javadoc"new TypeMapping"jar""javadoc" ) );
        }
    } );
    @Override
    public TypeMapping lookupfinal TypeAndClassifier tc )
    {
        if ( tc == null )
        {
            return null;
        }
        TypeMapping mapping = .gettc.getType() );
        if ( mapping == null )
        {
            mapping = new TypeMappingtc );
        }
        else
        {
            mapping = mapping.overrideClassifiertc );
        }
        return mapping;
    }
    @Override
    public Map<StringTypeMappinggetMappings()
    {
        return ;
    }
New to GrepCode? Check out our FAQ X