()
| 28 | } |
| 29 | |
| 30 | public String flag() { |
| 31 | @SuppressWarnings("unchecked") |
| 32 | List<Integer> flagInts = (List<Integer>) faker.fakeValuesService().fetch("nation.flag"); |
| 33 | |
| 34 | ByteBuffer byteBuffer = MappedByteBuffer.allocate(flagInts.size()); |
| 35 | |
| 36 | for (Integer flagInt : flagInts) { |
| 37 | byteBuffer.put(flagInt.byteValue()); |
| 38 | } |
| 39 | |
| 40 | return new String(byteBuffer.array(), UTF8_CHARSET); |
| 41 | } |
| 42 | |
| 43 | } |
nothing calls this directly
no test coverage detected