Java Code Examples for com.squareup.javapoet.TypeName.box()

The following are Jave code examples for showing how to use box() of the com.squareup.javapoet.TypeName class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: json2java4idea   File: PsiTypeConverter.java   View Source Code Vote up 5 votes
@Nonnull
@CheckReturnValue
static TypeName box(@Nonnull TypeName typeName) {
    try {
        return typeName.box();
    } catch (Exception e) {
        return typeName;
    }
}