How do I check Method.returnType() to see if the method returns a String[]? I'm able to check for simple return types like this:
if (returnType.equals(Boolean.TYPE)) ...
if (returnType.equals(Integer.TYPE)) ...
if (returnType.equals(String.class)) ...
but what would I use to check if the method has a return type of String[]?
Aucun commentaire:
Enregistrer un commentaire