(EncryptionVariant[] first,
EncryptionVariant[] next)
| 1177 | } |
| 1178 | |
| 1179 | private static boolean sameVariants(EncryptionVariant[] first, |
| 1180 | EncryptionVariant[] next) { |
| 1181 | if (first.length != next.length) { |
| 1182 | return false; |
| 1183 | } |
| 1184 | for(int k = 0; k < first.length; ++k) { |
| 1185 | if ((first[k].getKeyDescription() == null) != |
| 1186 | (next[k].getKeyDescription() == null) || |
| 1187 | !first[k].getKeyDescription().getKeyName().equals( |
| 1188 | next[k].getKeyDescription().getKeyName()) || |
| 1189 | first[k].getRoot().getId() != |
| 1190 | next[k].getRoot().getId()) { |
| 1191 | return false; |
| 1192 | } |
| 1193 | } |
| 1194 | return true; |
| 1195 | } |
| 1196 | |
| 1197 | /** |
| 1198 | * Is the new reader compatible with the file that is being written? |
no test coverage detected