merge 2/multiple methods that are always used together
generateXTableData and seedXTable into one
Merge multiple if
merge multiple if
merge multiple if including implicit
if (request.hasPageSize()) {checkArgument( request.getPageSize() > 0,String.format("Invalid page size: %d, it has to be positive value.", request.getPageSize()));}// tocheckArgument( !request.hasPageSize() || request.getPageSize() > 0,"Invalid page size: %d, it has to be unset or be positive value.", request.getPageSize());
Avoid String.format when the method already supports formatting
like Preconditions.checkArgument
Method that takes vargs
install(A.class);install(B.class);... to install(A.class, B.class, C.class)