(DataMaskDescription[] first,
DataMaskDescription[] next)
| 1144 | } |
| 1145 | |
| 1146 | private static boolean sameMasks(DataMaskDescription[] first, |
| 1147 | DataMaskDescription[] next) { |
| 1148 | if (first.length != next.length) { |
| 1149 | return false; |
| 1150 | } |
| 1151 | for(int k = 0; k < first.length; ++k) { |
| 1152 | if (!first[k].getName().equals(next[k].getName())) { |
| 1153 | return false; |
| 1154 | } |
| 1155 | String[] firstParam = first[k].getParameters(); |
| 1156 | String[] nextParam = next[k].getParameters(); |
| 1157 | if (firstParam.length != nextParam.length) { |
| 1158 | return false; |
| 1159 | } |
| 1160 | for(int p=0; p < firstParam.length; ++p) { |
| 1161 | if (!firstParam[p].equals(nextParam[p])) { |
| 1162 | return false; |
| 1163 | } |
| 1164 | } |
| 1165 | TypeDescription[] firstRoots = first[k].getColumns(); |
| 1166 | TypeDescription[] nextRoots = next[k].getColumns(); |
| 1167 | if (firstRoots.length != nextRoots.length) { |
| 1168 | return false; |
| 1169 | } |
| 1170 | for(int r=0; r < firstRoots.length; ++r) { |
| 1171 | if (firstRoots[r].getId() != nextRoots[r].getId()) { |
| 1172 | return false; |
| 1173 | } |
| 1174 | } |
| 1175 | } |
| 1176 | return true; |
| 1177 | } |
| 1178 | |
| 1179 | private static boolean sameVariants(EncryptionVariant[] first, |
| 1180 | EncryptionVariant[] next) { |
no test coverage detected