(Object exchange, Object prop, Object value)
| 582 | } |
| 583 | |
| 584 | public static void setExchangeProp(Object exchange, Object prop, Object value) { |
| 585 | if (exchange == null || !(prop instanceof String)) { |
| 586 | return; |
| 587 | } |
| 588 | |
| 589 | String propName = (String) prop; |
| 590 | |
| 591 | try { |
| 592 | |
| 593 | try { |
| 594 | Field field = exchange.getClass().getField(propName); |
| 595 | field.set(exchange, value); |
| 596 | } catch (NoSuchFieldException ignored) { |
| 597 | } |
| 598 | |
| 599 | } catch (Exception ignored) { |
| 600 | // do nothing |
| 601 | } |
| 602 | } |
| 603 | |
| 604 | public static String getRootDir() { |
| 605 | var prefix = FileSystems.getDefault().getPath("").toAbsolutePath(); |
no test coverage detected