Drops the first array item in the passed array. If the passed array is null or empty, returns an empty array @param args The array to shift @return the shifted array
(String[] args)
| 552 | * @return the shifted array |
| 553 | */ |
| 554 | private static String[] shift(String[] args) { |
| 555 | if(args==null || args.length==0 | args.length==1) return new String[0]; |
| 556 | String[] newArgs = new String[args.length-1]; |
| 557 | System.arraycopy(args, 1, newArgs, 0, newArgs.length); |
| 558 | return newArgs; |
| 559 | } |
| 560 | |
| 561 | |
| 562 | private static void registerShutdownHook(final TSDB tsdb) { |
no outgoing calls