Skip to content

Commit

Permalink
lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
chaokunyang committed Dec 5, 2023
1 parent e616c53 commit 35df38f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ public CodecBuilder(CodegenContext ctx, TypeToken<?> beanType) {
/** Returns an expression that serialize java bean of type {@link CodecBuilder#beanClass}. */
public abstract Expression buildEncodeExpression();

protected boolean sourcePublicAccessible(Class<?> cls) {
return ctx.sourcePublicAccessible(cls);
}

protected Expression tryInlineCast(Expression expression, TypeToken<?> targetType) {
return tryCastIfPublic(expression, targetType, true);
}
Expand All @@ -129,10 +133,6 @@ protected Expression tryCastIfPublic(Expression expression, TypeToken<?> targetT
return tryCastIfPublic(expression, targetType, false);
}

protected boolean sourcePublicAccessible(Class<?> cls) {
return ctx.sourcePublicAccessible(cls);
}

protected Expression tryCastIfPublic(
Expression expression, TypeToken<?> targetType, boolean inline) {
Class<?> rawType = getRawType(targetType);
Expand Down

0 comments on commit 35df38f

Please sign in to comment.