1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.script.internal.safe; |
21 |
|
|
22 |
|
import java.lang.reflect.Constructor; |
23 |
|
import java.util.ListIterator; |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
@param |
29 |
|
@version |
30 |
|
@since |
31 |
|
|
|
|
| 0% |
Uncovered Elements: 14 (14) |
Complexity: 7 |
Complexity Density: 1 |
|
32 |
|
public class SafeListIterator<E> extends SafeIterator<E, ListIterator<E>> implements ListIterator<E> |
33 |
|
{ |
34 |
|
|
35 |
|
@param |
36 |
|
@param |
37 |
|
@param |
38 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
39 |
0 |
public SafeListIterator(ListIterator<E> it, ScriptSafeProvider< ? > safeProvider,... |
40 |
|
Constructor< ? extends E> safeConstructor) |
41 |
|
{ |
42 |
0 |
super(it, safeProvider, safeConstructor); |
43 |
|
} |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
45 |
0 |
@Override... |
46 |
|
public boolean hasPrevious() |
47 |
|
{ |
48 |
0 |
return getWrapped().hasPrevious(); |
49 |
|
} |
50 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
51 |
0 |
@Override... |
52 |
|
public E previous() |
53 |
|
{ |
54 |
0 |
return safeElement(getWrapped().previous()); |
55 |
|
} |
56 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
0 |
@Override... |
58 |
|
public int nextIndex() |
59 |
|
{ |
60 |
0 |
return getWrapped().nextIndex(); |
61 |
|
} |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
0 |
@Override... |
64 |
|
public int previousIndex() |
65 |
|
{ |
66 |
0 |
return getWrapped().previousIndex(); |
67 |
|
} |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
0 |
@Override... |
70 |
|
public void set(E e) |
71 |
|
{ |
72 |
0 |
throw new UnsupportedOperationException(FORBIDDEN); |
73 |
|
} |
74 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
0 |
@Override... |
76 |
|
public void add(E e) |
77 |
|
{ |
78 |
0 |
throw new UnsupportedOperationException(FORBIDDEN); |
79 |
|
} |
80 |
|
} |