1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | |
package net.sf.statcvs.output; |
24 | |
|
25 | |
import java.awt.Color; |
26 | |
import java.io.BufferedReader; |
27 | |
import java.io.File; |
28 | |
import java.io.FileInputStream; |
29 | |
import java.io.FileNotFoundException; |
30 | |
import java.io.FileReader; |
31 | |
import java.io.IOException; |
32 | |
import java.io.InputStream; |
33 | |
import java.net.MalformedURLException; |
34 | |
import java.net.URL; |
35 | |
import java.util.ArrayList; |
36 | |
import java.util.Collection; |
37 | |
import java.util.Properties; |
38 | |
import java.util.regex.Pattern; |
39 | |
import java.util.regex.PatternSyntaxException; |
40 | |
|
41 | |
import net.sf.statcvs.pages.MarkupSyntax; |
42 | |
import net.sf.statcvs.util.FilePatternMatcher; |
43 | |
import net.sf.statcvs.util.FileUtils; |
44 | |
import net.sf.statcvs.weblinks.bugs.BugTracker; |
45 | |
import net.sf.statcvs.weblinks.bugs.Bugzilla; |
46 | |
import net.sf.statcvs.weblinks.bugs.Mantis; |
47 | |
|
48 | |
import org.jfree.chart.renderer.category.BarRenderer; |
49 | |
import org.jfree.chart.renderer.category.StandardBarPainter; |
50 | |
import org.jfree.chart.renderer.xy.StandardXYBarPainter; |
51 | |
import org.jfree.chart.renderer.xy.XYBarRenderer; |
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | 0 | |
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | 16 | public class ConfigurationOptions { |
64 | 16 | |
65 | 16 | private static final String LOGGING_CONFIG_DEFAULT = "logging.properties"; |
66 | 16 | private static final String LOGGING_CONFIG_VERBOSE = "logging-verbose.properties"; |
67 | 16 | private static final String LOGGING_CONFIG_DEBUG = "logging-debug.properties"; |
68 | 16 | |
69 | 24 | private static String logFileName = null; |
70 | 8 | private static String checkedOutDirectory = null; |
71 | 24 | private static String projectName = null; |
72 | 24 | private static String outputDir = ""; |
73 | 8 | private static String loggingProperties = LOGGING_CONFIG_DEFAULT; |
74 | 24 | private static String notesFile = null; |
75 | 8 | private static String notes = null; |
76 | 16 | |
77 | 24 | private static FilePatternMatcher includePattern = null; |
78 | 8 | private static FilePatternMatcher excludePattern = null; |
79 | |
|
80 | 24 | private static Collection nonDeveloperLogins = new ArrayList(); |
81 | 16 | |
82 | 24 | private static CssHandler cssHandler = new DefaultCssHandler("objectlab-statcvs.css"); |
83 | 8 | private static String charSet = "ISO-8859-1"; |
84 | 8 | private static WebRepositoryIntegration webRepository = null; |
85 | |
private static Pattern symbolicNamesPattern; |
86 | 0 | |
87 | 8 | private static BugTracker webBugTracker = BugTracker.NO_BUG_TRACKER; |
88 | 8 | private static String outputFormat = "html"; |
89 | 8 | private static Properties properties = new Properties(); |
90 | 0 | |
91 | 0 | static { |
92 | 8 | XYBarRenderer.setDefaultBarPainter(new StandardXYBarPainter()); |
93 | 8 | BarRenderer.setDefaultBarPainter(new StandardBarPainter()); |
94 | 8 | } |
95 | |
|
96 | |
public static String getCharSet() { |
97 | 0 | return charSet; |
98 | 0 | } |
99 | |
|
100 | |
public static void setCharSet(final String cs) { |
101 | 0 | charSet = cs; |
102 | 0 | } |
103 | |
|
104 | |
|
105 | 0 | |
106 | 0 | |
107 | |
|
108 | |
public static CssHandler getCssHandler() { |
109 | 0 | return cssHandler; |
110 | |
} |
111 | |
|
112 | |
|
113 | 0 | |
114 | 0 | |
115 | |
|
116 | |
public static String getProjectName() { |
117 | 0 | return projectName; |
118 | |
} |
119 | |
|
120 | |
|
121 | 0 | |
122 | 0 | |
123 | |
|
124 | |
public static String getCheckedOutDirectory() { |
125 | 0 | return checkedOutDirectory; |
126 | |
} |
127 | |
|
128 | |
|
129 | |
|
130 | 0 | |
131 | |
|
132 | |
public static String getLogFileName() { |
133 | 0 | return logFileName; |
134 | |
} |
135 | |
|
136 | |
|
137 | |
|
138 | |
|
139 | 0 | |
140 | |
public static String getOutputDir() { |
141 | 0 | return outputDir; |
142 | |
} |
143 | |
|
144 | |
|
145 | |
|
146 | |
|
147 | |
|
148 | 0 | |
149 | 0 | public static String getNotes() { |
150 | 0 | return notes; |
151 | |
} |
152 | 0 | |
153 | 0 | |
154 | |
|
155 | |
|
156 | |
|
157 | 0 | |
158 | 0 | public static WebRepositoryIntegration getWebRepository() { |
159 | 0 | return webRepository; |
160 | |
} |
161 | 0 | |
162 | 0 | |
163 | |
|
164 | |
|
165 | |
|
166 | |
|
167 | |
public static void setCheckedOutDirectory(final String checkedOutDirectory) throws ConfigurationException { |
168 | 0 | final File directory = new File(checkedOutDirectory); |
169 | 0 | if (!directory.exists() || !directory.isDirectory()) { |
170 | 0 | throw new ConfigurationException("directory does not exist: " + checkedOutDirectory); |
171 | |
} |
172 | 0 | ConfigurationOptions.checkedOutDirectory = checkedOutDirectory; |
173 | 0 | } |
174 | 0 | |
175 | 0 | |
176 | 0 | |
177 | 0 | |
178 | 0 | |
179 | 0 | |
180 | |
|
181 | 0 | |
182 | 0 | |
183 | 0 | |
184 | 0 | |
185 | 0 | |
186 | 0 | public static void setCssFile(final String cssFile) throws ConfigurationException { |
187 | 0 | try { |
188 | 0 | final URL url = new URL(cssFile); |
189 | 0 | if (!url.getProtocol().equals("http")) { |
190 | 0 | throw new ConfigurationException("Only HTTP URLs or local files allowed for -css"); |
191 | |
} |
192 | 0 | cssHandler = new UrlCssHandler(url); |
193 | 0 | } catch (final MalformedURLException isLocalFile) { |
194 | 0 | cssHandler = new LocalFileCssHandler(cssFile); |
195 | 0 | } |
196 | 0 | cssHandler.checkForMissingResources(); |
197 | 0 | } |
198 | 0 | |
199 | 0 | |
200 | |
|
201 | 0 | |
202 | 0 | |
203 | 0 | |
204 | |
public static void setLogFileName(final String logFileName) throws ConfigurationException { |
205 | 0 | final File inputFile = new File(logFileName); |
206 | 0 | if (!inputFile.exists()) { |
207 | 0 | throw new ConfigurationException("Specified logfile not found: " + logFileName); |
208 | 0 | } |
209 | 0 | ConfigurationOptions.logFileName = logFileName; |
210 | 0 | } |
211 | 0 | |
212 | 0 | |
213 | |
|
214 | 0 | |
215 | 0 | |
216 | |
|
217 | 0 | public static void setOutputDir(String outputDir) throws ConfigurationException { |
218 | 0 | if (!outputDir.endsWith(FileUtils.getDirSeparator())) { |
219 | 0 | outputDir += FileUtils.getDefaultDirSeparator(); |
220 | |
} |
221 | 0 | final File outDir = new File(outputDir); |
222 | 0 | if (!outDir.exists() && !outDir.mkdirs()) { |
223 | 0 | throw new ConfigurationException("Can't create output directory: " + outputDir); |
224 | 0 | } |
225 | 0 | ConfigurationOptions.outputDir = outputDir; |
226 | 0 | } |
227 | 0 | |
228 | 0 | |
229 | 0 | |
230 | 0 | |
231 | 0 | |
232 | |
|
233 | 0 | |
234 | |
|
235 | 0 | |
236 | 0 | public static void setNotesFile(final String notesFile) throws ConfigurationException { |
237 | 0 | final File f = new File(notesFile); |
238 | 0 | if (!f.exists()) { |
239 | 0 | throw new ConfigurationException("Notes file not found: " + notesFile); |
240 | 0 | } |
241 | 0 | if (!f.canRead()) { |
242 | 0 | throw new ConfigurationException("Can't read notes file: " + notesFile); |
243 | |
} |
244 | 0 | ConfigurationOptions.notesFile = notesFile; |
245 | |
try { |
246 | 0 | notes = readNotesFile(); |
247 | 0 | } catch (final IOException e) { |
248 | 0 | throw new ConfigurationException(e.getMessage()); |
249 | 0 | } |
250 | 0 | } |
251 | 0 | |
252 | |
|
253 | |
|
254 | |
|
255 | |
|
256 | |
|
257 | |
|
258 | |
public static void setViewCvsURL(final String url) { |
259 | 0 | ConfigurationOptions.webRepository = new ViewCvsIntegration(url); |
260 | 0 | } |
261 | 0 | |
262 | |
|
263 | |
|
264 | |
|
265 | |
|
266 | |
|
267 | |
|
268 | |
|
269 | 0 | public static void setCvswebURL(final String url) { |
270 | 0 | ConfigurationOptions.webRepository = new CvswebIntegration(url); |
271 | 0 | } |
272 | |
|
273 | |
|
274 | |
|
275 | |
|
276 | |
|
277 | |
|
278 | |
|
279 | 0 | public static void setChoraURL(final String url) { |
280 | 0 | ConfigurationOptions.webRepository = new ChoraIntegration(url); |
281 | 0 | } |
282 | 0 | |
283 | 0 | |
284 | |
|
285 | |
|
286 | |
|
287 | |
|
288 | |
|
289 | |
public static void setJCVSWebURL(final String url) { |
290 | 0 | ConfigurationOptions.webRepository = new JCVSWebIntegration(url); |
291 | 0 | } |
292 | 0 | |
293 | |
|
294 | 0 | |
295 | 0 | |
296 | |
|
297 | |
|
298 | 0 | |
299 | |
|
300 | |
|
301 | |
public static void setViewVcURL(final String url) { |
302 | 0 | ConfigurationOptions.webRepository = new ViewVcIntegration(url); |
303 | 0 | } |
304 | 0 | |
305 | 0 | |
306 | 0 | |
307 | |
|
308 | |
|
309 | |
|
310 | 0 | |
311 | 0 | |
312 | 0 | |
313 | 0 | public static void setViewTracURL(final String url) { |
314 | 0 | ConfigurationOptions.webRepository = new TracIntegration(url); |
315 | 0 | } |
316 | 0 | |
317 | 0 | |
318 | 0 | |
319 | 0 | |
320 | 0 | |
321 | 0 | public static void setProjectName(final String projectName) { |
322 | 0 | ConfigurationOptions.projectName = projectName; |
323 | 0 | } |
324 | 0 | |
325 | 0 | |
326 | 0 | |
327 | 0 | |
328 | 0 | |
329 | 0 | public static String getLoggingProperties() { |
330 | 0 | return loggingProperties; |
331 | 0 | } |
332 | 0 | |
333 | 0 | |
334 | 0 | |
335 | 0 | |
336 | |
public static void setVerboseLogging() { |
337 | 0 | ConfigurationOptions.loggingProperties = LOGGING_CONFIG_VERBOSE; |
338 | 0 | } |
339 | 0 | |
340 | 0 | |
341 | 0 | |
342 | 0 | |
343 | 0 | public static void setDebugLogging() { |
344 | 0 | ConfigurationOptions.loggingProperties = LOGGING_CONFIG_DEBUG; |
345 | 0 | } |
346 | 0 | |
347 | 0 | private static String readNotesFile() throws IOException { |
348 | 0 | BufferedReader r = null; |
349 | 0 | final StringBuffer result = new StringBuffer(); |
350 | |
try { |
351 | 0 | r = new BufferedReader(new FileReader(notesFile)); |
352 | 0 | String line = r.readLine(); |
353 | 0 | while (line != null) { |
354 | 0 | result.append(line); |
355 | 0 | line = r.readLine(); |
356 | |
} |
357 | |
} finally { |
358 | 0 | if (r != null) { |
359 | 0 | r.close(); |
360 | |
} |
361 | |
} |
362 | 0 | return result.toString(); |
363 | 0 | } |
364 | 0 | |
365 | 0 | |
366 | 0 | |
367 | 0 | |
368 | 0 | |
369 | |
|
370 | |
|
371 | 0 | |
372 | 0 | public static void setIncludePattern(final String patternList) { |
373 | 0 | includePattern = new FilePatternMatcher(patternList); |
374 | 0 | } |
375 | 0 | |
376 | 0 | |
377 | |
|
378 | 0 | |
379 | 0 | |
380 | 0 | |
381 | |
|
382 | 0 | |
383 | 0 | public static void setExcludePattern(final String patternList) { |
384 | 0 | excludePattern = new FilePatternMatcher(patternList); |
385 | 0 | } |
386 | 0 | |
387 | 0 | |
388 | 0 | |
389 | |
|
390 | 0 | public static FilePatternMatcher getExcludePattern() { |
391 | 0 | return excludePattern; |
392 | 0 | } |
393 | 0 | |
394 | 0 | |
395 | 0 | |
396 | 0 | |
397 | 0 | public static FilePatternMatcher getIncludePattern() { |
398 | 0 | return includePattern; |
399 | 0 | } |
400 | 0 | |
401 | 2 | public static void setSymbolicNamesPattern(final String symbolicNamesPattern) throws ConfigurationException { |
402 | 0 | try { |
403 | 0 | ConfigurationOptions.symbolicNamesPattern = Pattern.compile(symbolicNamesPattern); |
404 | 0 | } catch (final PatternSyntaxException e) { |
405 | 0 | throw new ConfigurationException("Invalid regular expression for tags: " + e.getLocalizedMessage()); |
406 | 0 | } |
407 | 0 | } |
408 | 0 | |
409 | 0 | public static Pattern getSymbolicNamesPattern() { |
410 | 0 | return symbolicNamesPattern; |
411 | 0 | } |
412 | |
|
413 | 6 | public static void setBugzillaUrl(final String bugzillaUrl) { |
414 | 0 | ConfigurationOptions.webBugTracker = new Bugzilla(bugzillaUrl); |
415 | 0 | } |
416 | 0 | |
417 | 0 | public static void setMantisUrl(final String mantisUrl) { |
418 | 0 | ConfigurationOptions.webBugTracker = new Mantis(mantisUrl); |
419 | 0 | } |
420 | 0 | |
421 | |
public static BugTracker getWebBugtracker() { |
422 | 0 | return ConfigurationOptions.webBugTracker; |
423 | 0 | } |
424 | |
|
425 | 0 | public static void setOutputFormat(final String outputFormat) throws ConfigurationException { |
426 | 0 | if (!"html".equals(outputFormat) && !"xdoc".equals(outputFormat) && !"xml".equals(outputFormat)) { |
427 | 0 | throw new ConfigurationException("Invalid output format, use only 'html', 'xdoc' or 'xml'"); |
428 | 0 | } |
429 | 0 | ConfigurationOptions.outputFormat = outputFormat; |
430 | 0 | } |
431 | 0 | |
432 | 0 | public static String getOutputFormat() { |
433 | 4 | return outputFormat; |
434 | 0 | } |
435 | 0 | |
436 | 0 | public static MarkupSyntax getMarkupSyntax() { |
437 | 0 | if ("xdoc".equals(outputFormat)) { |
438 | 0 | return ReportConfig.XDOC; |
439 | 0 | } else if ("xml".equals(outputFormat)) { |
440 | 0 | return ReportConfig.XML; |
441 | 0 | } |
442 | 0 | return ReportConfig.HTML; |
443 | 0 | } |
444 | 0 | |
445 | 0 | public static void setWebRepositoryIntegration(final WebRepositoryIntegration webRepo) { |
446 | 0 | webRepository = webRepo; |
447 | 0 | } |
448 | 0 | |
449 | 0 | |
450 | |
|
451 | 0 | |
452 | 0 | |
453 | 0 | public static void setDefaultCssFile(final String cssName) { |
454 | 0 | cssHandler = new DefaultCssHandler(cssName); |
455 | 0 | } |
456 | 0 | |
457 | |
|
458 | 0 | |
459 | |
|
460 | 0 | |
461 | 0 | |
462 | 0 | |
463 | 0 | public static void addNonDeveloperLogin(final String loginName) { |
464 | 0 | nonDeveloperLogins.add(loginName); |
465 | 0 | } |
466 | 0 | |
467 | 0 | |
468 | 0 | |
469 | 0 | |
470 | 0 | |
471 | |
public static Collection getNonDeveloperLogins() { |
472 | 0 | return nonDeveloperLogins; |
473 | 0 | } |
474 | 25 | |
475 | 0 | |
476 | 0 | |
477 | 0 | |
478 | |
|
479 | 0 | public static void setConfigFile(final String propertiesFilename) throws ConfigurationException { |
480 | 0 | if (propertiesFilename != null) { |
481 | 0 | InputStream is = null; |
482 | 0 | try { |
483 | 0 | is = new FileInputStream(propertiesFilename); |
484 | 0 | properties.load(is); |
485 | 0 | } catch (final FileNotFoundException e) { |
486 | 75 | throw new ConfigurationException("Unable to find the configuration file " + propertiesFilename); |
487 | 0 | } catch (final IOException e) { |
488 | 0 | throw new ConfigurationException("Problem reading the configuration file " + propertiesFilename); |
489 | |
} finally { |
490 | 0 | if (is != null) { |
491 | |
try { |
492 | 0 | is.close(); |
493 | 0 | } catch (final IOException e) { |
494 | 0 | throw new ConfigurationException("Problem closing stream to the configuration file " + propertiesFilename); |
495 | 0 | } |
496 | |
} |
497 | 0 | } |
498 | |
} |
499 | 0 | } |
500 | |
|
501 | |
|
502 | |
|
503 | |
|
504 | |
|
505 | |
public static Properties getConfigProperties() { |
506 | 50 | return properties; |
507 | |
} |
508 | |
|
509 | |
|
510 | |
|
511 | |
|
512 | |
|
513 | |
|
514 | |
|
515 | |
public static String getConfigStringProperty(final String propName, final String defaultValue) { |
516 | 0 | if (properties != null) { |
517 | 0 | return properties.getProperty(propName, defaultValue); |
518 | |
} |
519 | 0 | return defaultValue; |
520 | |
} |
521 | |
|
522 | |
public static String getConfigStringProperty(final String propName, final String fallBackPropName, final String defaultValue) { |
523 | 0 | if (properties != null) { |
524 | 0 | final String val = properties.getProperty(propName); |
525 | 0 | if (val != null) { |
526 | 0 | return val; |
527 | |
} else { |
528 | 0 | return properties.getProperty(fallBackPropName, defaultValue); |
529 | |
} |
530 | |
} |
531 | 0 | return defaultValue; |
532 | |
} |
533 | |
|
534 | |
|
535 | |
|
536 | |
|
537 | |
|
538 | |
|
539 | |
|
540 | |
public static Integer getConfigIntegerProperty(final String propName, final Integer defaultValue) { |
541 | 0 | if (properties != null) { |
542 | 0 | final String val = properties.getProperty(propName); |
543 | 0 | if (val != null) { |
544 | |
try { |
545 | 0 | return Integer.valueOf(val); |
546 | 0 | } catch (final NumberFormatException e) { |
547 | 0 | return defaultValue; |
548 | |
} |
549 | |
} |
550 | |
} |
551 | 0 | return defaultValue; |
552 | |
} |
553 | |
|
554 | |
|
555 | |
|
556 | |
|
557 | |
|
558 | |
|
559 | |
|
560 | |
public static Float getConfigIntegerProperty(final String propName, final Float defaultValue) { |
561 | 0 | if (properties != null) { |
562 | 0 | final String val = properties.getProperty(propName); |
563 | 0 | if (val != null) { |
564 | |
try { |
565 | 0 | return Float.valueOf(val); |
566 | 0 | } catch (final NumberFormatException e) { |
567 | 0 | return defaultValue; |
568 | |
} |
569 | |
} |
570 | |
} |
571 | 0 | return defaultValue; |
572 | |
} |
573 | |
|
574 | |
|
575 | |
|
576 | |
|
577 | |
|
578 | |
|
579 | |
|
580 | |
public static Color getConfigColorProperty(final String propName, final Color defaultValue) { |
581 | 0 | if (properties != null) { |
582 | 0 | String val = properties.getProperty(propName); |
583 | 0 | if (val != null) { |
584 | 0 | if (val.startsWith("#")) { |
585 | 0 | val = val.substring(1); |
586 | |
} |
587 | 0 | val = val.toLowerCase(); |
588 | 0 | if (val.length() > 6) { |
589 | 0 | return defaultValue; |
590 | |
} |
591 | 0 | return new Color(Integer.parseInt(val, 16)); |
592 | |
} |
593 | |
} |
594 | 0 | return defaultValue; |
595 | |
} |
596 | |
|
597 | |
|
598 | |
|
599 | |
|
600 | |
|
601 | |
|
602 | |
|
603 | |
public static Integer getConfigIntegerProperty(final String propName, final String fallBackPropName, final Integer defaultValue) { |
604 | 0 | if (properties != null) { |
605 | 0 | final String val = properties.getProperty(propName); |
606 | 0 | if (val != null) { |
607 | |
try { |
608 | 0 | return Integer.valueOf(val); |
609 | 0 | } catch (final NumberFormatException e) { |
610 | 0 | return defaultValue; |
611 | |
} |
612 | |
} else { |
613 | 0 | return getConfigIntegerProperty(fallBackPropName, defaultValue); |
614 | |
} |
615 | |
} |
616 | 0 | return defaultValue; |
617 | |
} |
618 | |
|
619 | |
|
620 | |
|
621 | |
|
622 | |
|
623 | |
|
624 | |
|
625 | |
public static Float getConfigFloatProperty(final String propName, final String fallBackPropName, final Float defaultValue) { |
626 | 0 | if (properties != null) { |
627 | 0 | final String val = properties.getProperty(propName); |
628 | 0 | if (val != null) { |
629 | |
try { |
630 | 0 | return Float.valueOf(val); |
631 | 0 | } catch (final NumberFormatException e) { |
632 | 0 | return defaultValue; |
633 | |
} |
634 | |
} else { |
635 | 0 | return getConfigIntegerProperty(fallBackPropName, defaultValue); |
636 | |
} |
637 | |
} |
638 | 0 | return defaultValue; |
639 | |
} |
640 | |
|
641 | |
|
642 | |
|
643 | |
|
644 | |
|
645 | |
|
646 | |
|
647 | |
public static Boolean getConfigBooleanProperty(final String propName, final String fallBackPropName, final Boolean defaultValue) { |
648 | 0 | if (properties != null) { |
649 | 0 | String val = properties.getProperty(propName); |
650 | 0 | if (val != null) { |
651 | |
try { |
652 | 0 | return Boolean.valueOf(val); |
653 | 0 | } catch (final NumberFormatException e) { |
654 | 0 | return defaultValue; |
655 | |
} |
656 | |
} else { |
657 | 0 | val = properties.getProperty(fallBackPropName); |
658 | 0 | if (val != null) { |
659 | 0 | return Boolean.valueOf(val); |
660 | |
} |
661 | |
} |
662 | |
} |
663 | 0 | return defaultValue; |
664 | |
} |
665 | |
|
666 | |
|
667 | |
|
668 | |
|
669 | |
|
670 | |
|
671 | |
|
672 | |
public static Color getConfigColorProperty(final String propName, final String fallBackPropName, final Color defaultValue) { |
673 | 0 | if (properties != null) { |
674 | 0 | String val = properties.getProperty(propName); |
675 | 0 | if (val != null) { |
676 | 0 | if (val.startsWith("#")) { |
677 | 0 | val = val.substring(1); |
678 | |
} |
679 | 0 | val = val.toLowerCase(); |
680 | 0 | if (val.length() > 6) { |
681 | 0 | return defaultValue; |
682 | |
} |
683 | 0 | return new Color(Integer.parseInt(val, 16)); |
684 | |
} else { |
685 | 0 | return getConfigColorProperty(fallBackPropName, defaultValue); |
686 | |
} |
687 | |
} |
688 | 0 | return defaultValue; |
689 | |
} |
690 | |
} |