app/src/main/java/com/wwq/genesislaw/controller/utils/LogUtils.java
/**
	 * Determines the starting index of the stack trace, after method calls made by this class.
	 *
	 * @param trace the stack trace
	 * @return the stack offset
	 */
Determines the starting index of the stack trace, after method calls made by this class.
@param trace the stack trace
@return the stack offset
Determines the starting index of the stack trace after method calls made by this class . @param trace the stack trace @return the stack offset
private static int _getStackOffset(StackTraceElement[] trace) {
		for (int i = MIN_STACK_OFFSET; i < trace.length; i++) {
			StackTraceElement e = trace[i];
			String name = e.getClassName();
			if (!name.equals(LogUtils.class.getName())) {
				return --i;
			}
		}
		return -1;
	}
private static int _getStackOffset ( StackTraceElement [ ] trace ) { for ( int i = MIN_STACK_OFFSET ; i < trace . length ; i ++ ) { StackTraceElement e = trace [ i ] ; String name = e . getClassName ( ) ; if ( ! name . equals ( LogUtils . class . getName ( ) ) ) { return -- i ; } } return - 1 ; }
Determines the starting index of the stack trace, after method calls made by this class.
Determines the starting index of the stack trace after method calls made by this class .