| | |
| | | */ |
| | | package com.forgerock.opendj.cli; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.Vector; |
| | |
| | | public void addTitle(final String[] row, final int[] span) { |
| | | // Need to create a new instance of it, otherwise the new values |
| | | // will always overwrite the old values. |
| | | |
| | | final String[] rowInstance = new String[row.length]; |
| | | for (int i = 0; i < row.length; i++) { |
| | | rowInstance[i] = row[i]; |
| | | } |
| | | titleTable.add(rowInstance); |
| | | |
| | | titleTable.add(Arrays.copyOf(row, row.length)); |
| | | titleSpanTable.add(span); |
| | | } |
| | | |