1 | /* | |
2 | * Copyright 2002 by Paulo Soares. | |
3 | * | |
4 | * The contents of this file are subject to the Mozilla Public License Version 1.1 | |
5 | * (the "License"); you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at http://www.mozilla.org/MPL/ | |
7 | * | |
8 | * Software distributed under the License is distributed on an "AS IS" basis, | |
9 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | |
10 | * for the specific language governing rights and limitations under the License. | |
11 | * | |
12 | * The Original Code is 'iText, a free JAVA-PDF library'. | |
13 | * | |
14 | * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by | |
15 | * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie. | |
16 | * All Rights Reserved. | |
17 | * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer | |
18 | * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved. | |
19 | * | |
20 | * Contributor(s): all the names of the contributors are added in the source code | |
21 | * where applicable. | |
22 | * | |
23 | * Alternatively, the contents of this file may be used under the terms of the | |
24 | * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the | |
25 | * provisions of LGPL are applicable instead of those above. If you wish to | |
26 | * allow use of your version of this file only under the terms of the LGPL | |
27 | * License and not to allow others to use your version of this file under | |
28 | * the MPL, indicate your decision by deleting the provisions above and | |
29 | * replace them with the notice and other provisions required by the LGPL. | |
30 | * If you do not delete the provisions above, a recipient may use your version | |
31 | * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE. | |
32 | * | |
33 | * This library is free software; you can redistribute it and/or modify it | |
34 | * under the terms of the MPL as stated above or under the terms of the GNU | |
35 | * Library General Public License as published by the Free Software Foundation; | |
36 | * either version 2 of the License, or any later version. | |
37 | * | |
38 | * This library is distributed in the hope that it will be useful, but WITHOUT | |
39 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
40 | * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more | |
41 | * details. | |
42 | * | |
43 | * If you didn't download this code from the following link, you should check if | |
44 | * you aren't using an obsolete version: | |
45 | * http://www.lowagie.com/iText/ | |
46 | */ | |
47 | ||
48 | package com.lowagie.text.pdf; | |
49 | import java.util.ArrayList; | |
50 | import java.util.List; | |
51 | ||
52 | import com.lowagie.text.Rectangle; | |
53 | ||
54 | /** Implements form fields. | |
55 | * | |
56 | * @author Paulo Soares (psoares@consiste.pt) | |
57 | */ | |
58 | public class PdfFormField extends PdfAnnotation { | |
59 | ||
60 | public static final int FF_READ_ONLY = 1; | |
61 | public static final int FF_REQUIRED = 2; | |
62 | public static final int FF_NO_EXPORT = 4; | |
63 | public static final int FF_NO_TOGGLE_TO_OFF = 16384; | |
64 | public static final int FF_RADIO = 32768; | |
65 | public static final int FF_PUSHBUTTON = 65536; | |
66 | public static final int FF_MULTILINE = 4096; | |
67 | public static final int FF_PASSWORD = 8192; | |
68 | public static final int FF_COMBO = 131072; | |
69 | public static final int FF_EDIT = 262144; | |
70 | public static final int FF_FILESELECT = 1048576; | |
71 | public static final int FF_MULTISELECT = 2097152; | |
72 | public static final int FF_DONOTSPELLCHECK = 4194304; | |
73 | public static final int FF_DONOTSCROLL = 8388608; | |
74 | public static final int FF_COMB = 16777216; | |
75 | public static final int FF_RADIOSINUNISON = 1 << 25; | |
76 | public static final int Q_LEFT = 0; | |
77 | public static final int Q_CENTER = 1; | |
78 | public static final int Q_RIGHT = 2; | |
79 | public static final int MK_NO_ICON = 0; | |
80 | public static final int MK_NO_CAPTION = 1; | |
81 | public static final int MK_CAPTION_BELOW = 2; | |
82 | public static final int MK_CAPTION_ABOVE = 3; | |
83 | public static final int MK_CAPTION_RIGHT = 4; | |
84 | public static final int MK_CAPTION_LEFT = 5; | |
85 | public static final int MK_CAPTION_OVERLAID = 6; | |
86 | public static final PdfName IF_SCALE_ALWAYS = PdfName.A; | |
87 | public static final PdfName IF_SCALE_BIGGER = PdfName.B; | |
88 | public static final PdfName IF_SCALE_SMALLER = PdfName.S; | |
89 | public static final PdfName IF_SCALE_NEVER = PdfName.N; | |
90 | public static final PdfName IF_SCALE_ANAMORPHIC = PdfName.A; | |
91 | public static final PdfName IF_SCALE_PROPORTIONAL = PdfName.P; | |
92 | public static final boolean MULTILINE = true; | |
93 | public static final boolean SINGLELINE = false; | |
94 | public static final boolean PLAINTEXT = false; | |
95 | public static final boolean PASSWORD = true; | |
96 | static PdfName[] mergeTarget = {PdfName.FONT, PdfName.XOBJECT, PdfName.COLORSPACE, PdfName.PATTERN}; | |
97 | | |
98 | /** Holds value of property parent. */ | |
99 | protected PdfFormField parent; | |
100 | | |
101 | protected List<PdfFormField> kids; | |
102 | | |
103 | /** | |
104 | * Constructs a new <CODE>PdfAnnotation</CODE> of subtype link (Action). | |
105 | */ | |
106 | | |
107 | public PdfFormField(PdfWriter writer, float llx, float lly, float urx, float ury, PdfAction action) { | |
108 | super(writer, llx, lly, urx, ury, action); | |
109 |
1
1. |
put(PdfName.TYPE, PdfName.ANNOT); |
110 |
1
1. |
put(PdfName.SUBTYPE, PdfName.WIDGET); |
111 | annotation = true; | |
112 | } | |
113 | ||
114 | /** Creates new PdfFormField */ | |
115 | protected PdfFormField(PdfWriter writer) { | |
116 | super(writer, null); | |
117 | form = true; | |
118 | annotation = false; | |
119 | } | |
120 | | |
121 | public void setWidget(Rectangle rect, PdfName highlight) { | |
122 |
1
1. setWidget : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.TYPE, PdfName.ANNOT); |
123 |
1
1. setWidget : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.SUBTYPE, PdfName.WIDGET); |
124 |
1
1. setWidget : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.RECT, new PdfRectangle(rect)); |
125 | annotation = true; | |
126 |
2
1. setWidget : negated conditional → NO_COVERAGE 2. setWidget : negated conditional → NO_COVERAGE |
if (highlight != null && !highlight.equals(HIGHLIGHT_INVERT)) |
127 |
1
1. setWidget : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.H, highlight); |
128 | } | |
129 | | |
130 | public static PdfFormField createEmpty(PdfWriter writer) { | |
131 | PdfFormField field = new PdfFormField(writer); | |
132 |
1
1. createEmpty : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::createEmpty to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return field; |
133 | } | |
134 | | |
135 | public void setButton(int flags) { | |
136 |
1
1. setButton : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.FT, PdfName.BTN); |
137 |
1
1. setButton : negated conditional → NO_COVERAGE |
if (flags != 0) |
138 |
1
1. setButton : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.FF, new PdfNumber(flags)); |
139 | } | |
140 | | |
141 | protected static PdfFormField createButton(PdfWriter writer, int flags) { | |
142 | PdfFormField field = new PdfFormField(writer); | |
143 |
1
1. createButton : removed call to com/lowagie/text/pdf/PdfFormField::setButton → NO_COVERAGE |
field.setButton(flags); |
144 |
1
1. createButton : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::createButton to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return field; |
145 | } | |
146 | | |
147 | public static PdfFormField createPushButton(PdfWriter writer) { | |
148 |
1
1. createPushButton : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::createPushButton to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return createButton(writer, FF_PUSHBUTTON); |
149 | } | |
150 | ||
151 | public static PdfFormField createCheckBox(PdfWriter writer) { | |
152 |
1
1. createCheckBox : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::createCheckBox to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return createButton(writer, 0); |
153 | } | |
154 | ||
155 | public static PdfFormField createRadioButton(PdfWriter writer, boolean noToggleToOff) { | |
156 |
3
1. createRadioButton : Replaced integer addition with subtraction → NO_COVERAGE 2. createRadioButton : negated conditional → NO_COVERAGE 3. createRadioButton : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::createRadioButton to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return createButton(writer, FF_RADIO + (noToggleToOff ? FF_NO_TOGGLE_TO_OFF : 0)); |
157 | } | |
158 | | |
159 | public static PdfFormField createTextField(PdfWriter writer, boolean multiline, boolean password, int maxLen) { | |
160 | PdfFormField field = new PdfFormField(writer); | |
161 |
1
1. createTextField : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
field.put(PdfName.FT, PdfName.TX); |
162 |
1
1. createTextField : negated conditional → NO_COVERAGE |
int flags = (multiline ? FF_MULTILINE : 0); |
163 |
2
1. createTextField : Replaced integer addition with subtraction → NO_COVERAGE 2. createTextField : negated conditional → NO_COVERAGE |
flags += (password ? FF_PASSWORD : 0); |
164 |
1
1. createTextField : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
field.put(PdfName.FF, new PdfNumber(flags)); |
165 |
2
1. createTextField : changed conditional boundary → NO_COVERAGE 2. createTextField : negated conditional → NO_COVERAGE |
if (maxLen > 0) |
166 |
1
1. createTextField : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
field.put(PdfName.MAXLEN, new PdfNumber(maxLen)); |
167 |
1
1. createTextField : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::createTextField to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return field; |
168 | } | |
169 | | |
170 | protected static PdfFormField createChoice(PdfWriter writer, int flags, PdfArray options, int topIndex) { | |
171 | PdfFormField field = new PdfFormField(writer); | |
172 |
1
1. createChoice : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
field.put(PdfName.FT, PdfName.CH); |
173 |
1
1. createChoice : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
field.put(PdfName.FF, new PdfNumber(flags)); |
174 |
1
1. createChoice : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
field.put(PdfName.OPT, options); |
175 |
2
1. createChoice : changed conditional boundary → NO_COVERAGE 2. createChoice : negated conditional → NO_COVERAGE |
if (topIndex > 0) |
176 |
1
1. createChoice : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
field.put(PdfName.TI, new PdfNumber(topIndex)); |
177 |
1
1. createChoice : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::createChoice to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return field; |
178 | } | |
179 | | |
180 | public static PdfFormField createList(PdfWriter writer, String[] options, int topIndex) { | |
181 |
1
1. createList : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::createList to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return createChoice(writer, 0, processOptions(options), topIndex); |
182 | } | |
183 | ||
184 | public static PdfFormField createList(PdfWriter writer, String[][] options, int topIndex) { | |
185 |
1
1. createList : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::createList to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return createChoice(writer, 0, processOptions(options), topIndex); |
186 | } | |
187 | ||
188 | public static PdfFormField createCombo(PdfWriter writer, boolean edit, String[] options, int topIndex) { | |
189 |
3
1. createCombo : Replaced integer addition with subtraction → NO_COVERAGE 2. createCombo : negated conditional → NO_COVERAGE 3. createCombo : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::createCombo to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return createChoice(writer, FF_COMBO + (edit ? FF_EDIT : 0), processOptions(options), topIndex); |
190 | } | |
191 | | |
192 | public static PdfFormField createCombo(PdfWriter writer, boolean edit, String[][] options, int topIndex) { | |
193 |
3
1. createCombo : Replaced integer addition with subtraction → NO_COVERAGE 2. createCombo : negated conditional → NO_COVERAGE 3. createCombo : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::createCombo to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return createChoice(writer, FF_COMBO + (edit ? FF_EDIT : 0), processOptions(options), topIndex); |
194 | } | |
195 | | |
196 | protected static PdfArray processOptions(String[] options) { | |
197 | PdfArray array = new PdfArray(); | |
198 | for (String option : options) { | |
199 | array.add(new PdfString(option, PdfObject.TEXT_UNICODE)); | |
200 | } | |
201 |
1
1. processOptions : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::processOptions to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return array; |
202 | } | |
203 | | |
204 | protected static PdfArray processOptions(String[][] options) { | |
205 | PdfArray array = new PdfArray(); | |
206 | for (String[] subOption : options) { | |
207 | PdfArray ar2 = new PdfArray(new PdfString(subOption[0], PdfObject.TEXT_UNICODE)); | |
208 | ar2.add(new PdfString(subOption[1], PdfObject.TEXT_UNICODE)); | |
209 | array.add(ar2); | |
210 | } | |
211 |
1
1. processOptions : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::processOptions to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return array; |
212 | } | |
213 | | |
214 | public static PdfFormField createSignature(PdfWriter writer) { | |
215 | PdfFormField field = new PdfFormField(writer); | |
216 |
1
1. createSignature : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
field.put(PdfName.FT, PdfName.SIG); |
217 |
1
1. createSignature : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::createSignature to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return field; |
218 | } | |
219 | | |
220 | /** Getter for property parent. | |
221 | * @return Value of property parent. | |
222 | */ | |
223 | public PdfFormField getParent() { | |
224 | return parent; | |
225 | } | |
226 | | |
227 | public void addKid(PdfFormField field) { | |
228 | field.parent = this; | |
229 |
1
1. addKid : negated conditional → NO_COVERAGE |
if (kids == null) |
230 | kids = new ArrayList<>(); | |
231 | kids.add(field); | |
232 | } | |
233 | | |
234 | public List<PdfFormField> getKids() { | |
235 | return kids; | |
236 | } | |
237 | | |
238 | public int setFieldFlags(int flags) { | |
239 | PdfNumber obj = (PdfNumber)get(PdfName.FF); | |
240 | int old; | |
241 |
1
1. setFieldFlags : negated conditional → NO_COVERAGE |
if (obj == null) |
242 | old = 0; | |
243 | else | |
244 | old = obj.intValue(); | |
245 |
1
1. setFieldFlags : Replaced bitwise OR with AND → NO_COVERAGE |
int v = old | flags; |
246 |
1
1. setFieldFlags : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.FF, new PdfNumber(v)); |
247 |
1
1. setFieldFlags : replaced return of integer sized value with (x == 0 ? 1 : 0) → NO_COVERAGE |
return old; |
248 | } | |
249 | | |
250 | public void setValueAsString(String s) { | |
251 |
1
1. setValueAsString : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.V, new PdfString(s, PdfObject.TEXT_UNICODE)); |
252 | } | |
253 | ||
254 | public void setValueAsName(String s) { | |
255 |
1
1. setValueAsName : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.V, new PdfName(s)); |
256 | } | |
257 | ||
258 | public void setValue(PdfSignature sig) { | |
259 |
1
1. setValue : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.V, sig); |
260 | } | |
261 | ||
262 | public void setDefaultValueAsString(String s) { | |
263 |
1
1. setDefaultValueAsString : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.DV, new PdfString(s, PdfObject.TEXT_UNICODE)); |
264 | } | |
265 | ||
266 | public void setDefaultValueAsName(String s) { | |
267 |
1
1. setDefaultValueAsName : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.DV, new PdfName(s)); |
268 | } | |
269 | | |
270 | public void setFieldName(String s) { | |
271 |
1
1. setFieldName : negated conditional → NO_COVERAGE |
if (s != null) |
272 |
1
1. setFieldName : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.T, new PdfString(s, PdfObject.TEXT_UNICODE)); |
273 | } | |
274 | | |
275 | public void setUserName(String s) { | |
276 |
1
1. setUserName : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.TU, new PdfString(s, PdfObject.TEXT_UNICODE)); |
277 | } | |
278 | | |
279 | public void setMappingName(String s) { | |
280 |
1
1. setMappingName : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.TM, new PdfString(s, PdfObject.TEXT_UNICODE)); |
281 | } | |
282 | | |
283 | public void setQuadding(int v) { | |
284 |
1
1. setQuadding : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.Q, new PdfNumber(v)); |
285 | } | |
286 | | |
287 | static void mergeResources(PdfDictionary result, PdfDictionary source, PdfStamperImp writer) { | |
288 | PdfDictionary dic = null; | |
289 | PdfDictionary res = null; | |
290 | PdfName target = null; | |
291 | for (PdfName pdfName : mergeTarget) { | |
292 | target = pdfName; | |
293 | PdfDictionary pdfDict = source.getAsDict(target); | |
294 |
1
1. mergeResources : negated conditional → NO_COVERAGE |
if ((dic = pdfDict) != null) { |
295 |
1
1. mergeResources : negated conditional → NO_COVERAGE |
if ((res = (PdfDictionary) PdfReader.getPdfObject(result.get(target), result)) == null) { |
296 | res = new PdfDictionary(); | |
297 | } | |
298 |
1
1. mergeResources : removed call to com/lowagie/text/pdf/PdfDictionary::mergeDifferent → NO_COVERAGE |
res.mergeDifferent(dic); |
299 |
1
1. mergeResources : removed call to com/lowagie/text/pdf/PdfDictionary::put → NO_COVERAGE |
result.put(target, res); |
300 |
1
1. mergeResources : negated conditional → NO_COVERAGE |
if (writer != null) |
301 |
1
1. mergeResources : removed call to com/lowagie/text/pdf/PdfStamperImp::markUsed → NO_COVERAGE |
writer.markUsed(res); |
302 | } | |
303 | } | |
304 | } | |
305 | ||
306 | static void mergeResources(PdfDictionary result, PdfDictionary source) { | |
307 |
1
1. mergeResources : removed call to com/lowagie/text/pdf/PdfFormField::mergeResources → NO_COVERAGE |
mergeResources(result, source, null); |
308 | } | |
309 | ||
310 | public void setUsed() { | |
311 | used = true; | |
312 |
1
1. setUsed : negated conditional → NO_COVERAGE |
if (parent != null) |
313 |
1
1. setUsed : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.PARENT, parent.getIndirectReference()); |
314 |
1
1. setUsed : negated conditional → NO_COVERAGE |
if (kids != null) { |
315 | PdfArray array = new PdfArray(); | |
316 | for (PdfFormField kid : kids) { | |
317 | array.add(kid.getIndirectReference()); | |
318 | } | |
319 |
1
1. setUsed : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.KIDS, array); |
320 | } | |
321 |
1
1. setUsed : negated conditional → NO_COVERAGE |
if (templates == null) |
322 | return; | |
323 | PdfDictionary dic = new PdfDictionary(); | |
324 | for (PdfTemplate template : templates.keySet()) { | |
325 |
1
1. setUsed : removed call to com/lowagie/text/pdf/PdfFormField::mergeResources → NO_COVERAGE |
mergeResources(dic, (PdfDictionary) template.getResources()); |
326 | } | |
327 |
1
1. setUsed : removed call to com/lowagie/text/pdf/PdfFormField::put → NO_COVERAGE |
put(PdfName.DR, dic); |
328 | } | |
329 | ||
330 | public static PdfAnnotation shallowDuplicate(PdfAnnotation annot) { | |
331 | PdfAnnotation dup; | |
332 |
1
1. shallowDuplicate : negated conditional → NO_COVERAGE |
if (annot.isForm()) { |
333 | dup = new PdfFormField(annot.writer); | |
334 | PdfFormField dupField = (PdfFormField)dup; | |
335 | PdfFormField srcField = (PdfFormField)annot; | |
336 | dupField.parent = srcField.parent; | |
337 | dupField.kids = srcField.kids; | |
338 | } | |
339 | else | |
340 | dup = new PdfAnnotation(annot.writer, null); | |
341 |
1
1. shallowDuplicate : removed call to com/lowagie/text/pdf/PdfAnnotation::merge → NO_COVERAGE |
dup.merge(annot); |
342 | dup.form = annot.form; | |
343 | dup.annotation = annot.annotation; | |
344 | dup.templates = annot.templates; | |
345 |
1
1. shallowDuplicate : mutated return of Object value for com/lowagie/text/pdf/PdfFormField::shallowDuplicate to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return dup; |
346 | } | |
347 | } | |
Mutations | ||
109 |
1.1 |
|
110 |
1.1 |
|
122 |
1.1 |
|
123 |
1.1 |
|
124 |
1.1 |
|
126 |
1.1 2.2 |
|
127 |
1.1 |
|
132 |
1.1 |
|
136 |
1.1 |
|
137 |
1.1 |
|
138 |
1.1 |
|
143 |
1.1 |
|
144 |
1.1 |
|
148 |
1.1 |
|
152 |
1.1 |
|
156 |
1.1 2.2 3.3 |
|
161 |
1.1 |
|
162 |
1.1 |
|
163 |
1.1 2.2 |
|
164 |
1.1 |
|
165 |
1.1 2.2 |
|
166 |
1.1 |
|
167 |
1.1 |
|
172 |
1.1 |
|
173 |
1.1 |
|
174 |
1.1 |
|
175 |
1.1 2.2 |
|
176 |
1.1 |
|
177 |
1.1 |
|
181 |
1.1 |
|
185 |
1.1 |
|
189 |
1.1 2.2 3.3 |
|
193 |
1.1 2.2 3.3 |
|
201 |
1.1 |
|
211 |
1.1 |
|
216 |
1.1 |
|
217 |
1.1 |
|
229 |
1.1 |
|
241 |
1.1 |
|
245 |
1.1 |
|
246 |
1.1 |
|
247 |
1.1 |
|
251 |
1.1 |
|
255 |
1.1 |
|
259 |
1.1 |
|
263 |
1.1 |
|
267 |
1.1 |
|
271 |
1.1 |
|
272 |
1.1 |
|
276 |
1.1 |
|
280 |
1.1 |
|
284 |
1.1 |
|
294 |
1.1 |
|
295 |
1.1 |
|
298 |
1.1 |
|
299 |
1.1 |
|
300 |
1.1 |
|
301 |
1.1 |
|
307 |
1.1 |
|
312 |
1.1 |
|
313 |
1.1 |
|
314 |
1.1 |
|
319 |
1.1 |
|
321 |
1.1 |
|
325 |
1.1 |
|
327 |
1.1 |
|
332 |
1.1 |
|
341 |
1.1 |
|
345 |
1.1 |