This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Original from https://gist.github.com/evelyne24/7714094 | |
# Notes | |
# In MacOS, + does not work for regex, nor -E flag. | |
# Instead I used \{1,\} for char repetition. | |
# Formatting constants | |
bold=`tput bold` | |
red=`tput setaf 1` | |
bg_red=`tput setab 1` | |
green=`tput setaf 2` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package be.vandemalle.jasper.util.reflection; | |
import java.lang.reflect.Field; | |
import org.apache.commons.lang.StringUtils; | |
public class FieldUtils { | |
/** | |
* Get the specified field on the class. If the field is not found on the class itself will recursively check | |
* the superclass. |