equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
367 cur = cur.next; |
367 cur = cur.next; |
368 } |
368 } |
369 if (numerrors == 0) { |
369 if (numerrors == 0) { |
370 return null; |
370 return null; |
371 } |
371 } |
372 Object errors[] = new Object[numerrors]; |
372 Object[] errors = new Object[numerrors]; |
373 cur = head; |
373 cur = head; |
374 numerrors = 0; |
374 numerrors = 0; |
375 while (cur != null) { |
375 while (cur != null) { |
376 if ((cur.getStatus(false, false) & ERRORED) != 0) { |
376 if ((cur.getStatus(false, false) & ERRORED) != 0) { |
377 errors[numerrors++] = cur.getMedia(); |
377 errors[numerrors++] = cur.getMedia(); |
596 cur = cur.next; |
596 cur = cur.next; |
597 } |
597 } |
598 if (numerrors == 0) { |
598 if (numerrors == 0) { |
599 return null; |
599 return null; |
600 } |
600 } |
601 Object errors[] = new Object[numerrors]; |
601 Object[] errors = new Object[numerrors]; |
602 cur = head; |
602 cur = head; |
603 numerrors = 0; |
603 numerrors = 0; |
604 while (cur != null) { |
604 while (cur != null) { |
605 if (cur.getID() == id |
605 if (cur.getID() == id |
606 && (cur.getStatus(false, false) & ERRORED) != 0) |
606 && (cur.getStatus(false, false) & ERRORED) != 0) |