Clover coverage report - PMD - 3.9 Coverage timestamp: Tue Dec 19 2006 09:38:44 EST FRAMES NO FRAMES |
file stats: | LOC: | 42 |  | Methods: | 3
| NCLOC: | 20 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
TargetJDK1_3.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.3.
15 |  | *
16 |  | * @author Tom Copeland
17 |  | */
18 |  | public class TargetJDK1_3 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.setJDK13();
26 | 0 | return jp;
27 |  | }
28 |  |
29 |  | /**
30 |  | * @see net.sourceforge.pmd.TargetJDKVersion#createParser(Reader)
31 |  | */
32 | 3 | public JavaParser createParser(Reader in) {
33 | 3 | JavaParser jp = new JavaParser(new JavaCharStream(in));
34 | 3 | jp.setJDK13();
35 | 3 | return jp;
36 |  | }
37 |  |
38 | 0 | public String getVersionString() {
39 | 0 | return "1.3";
40 |  | }
41 |  |
42 |  | }