Clover coverage report - PMD - 3.7 Coverage timestamp: Wed May 31 2006 09:25:59 EDT FRAMES NO FRAMES |
file stats: | LOC: | 42 |  | Methods: | 3
| NCLOC: | 20 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
TargetJDK1_5.java | - | 42.9% | 33.3% | 40% |

1 |  | /*
2 |  | * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 |  | */
4 |  | package net.sourceforge.pmd;
5 |  |
6 |  | import net.sourceforge.pmd.ast.JavaCharStream;
7 |  | import net.sourceforge.pmd.ast.JavaParser;
8 |  |
9 |  | import java.io.InputStream;
10 |  | import java.io.Reader;
11 |  |
12 |  | /**
13 |  | * This is an implementation of {@link net.sourceforge.pmd.TargetJDKVersion} for
14 |  | * JDK 1.5.
15 |  | *
16 |  | * @author Tom Copeland
17 |  | */
18 |  | public class TargetJDK1_5 implements TargetJDKVersion {
19 |  |
20 |  | /**
21 |  | * @see net.sourceforge.pmd.TargetJDKVersion#createParser(InputStream)
22 |  | */
23 | 0 | public JavaParser createParser(InputStream in) {
24 | 0 | JavaParser jp = new JavaParser(new JavaCharStream(in));
25 | 0 | jp.setJDK15();
26 | 0 | return jp;
27 |  | }
28 |  |
29 |  | /**
30 |  | * @see net.sourceforge.pmd.TargetJDKVersion#createParser(Reader)
31 |  | */
32 | 24 | public JavaParser createParser(Reader in) {
33 | 24 | JavaParser jp = new JavaParser(new JavaCharStream(in));
34 | 24 | jp.setJDK15();
35 | 24 | return jp;
36 |  | }
37 |  |
38 | 0 | public String getVersionString() {
39 | 0 | return "1.5";
40 |  | }
41 |  |
42 |  | }