Clover coverage report - PMD - 3.9 Coverage timestamp: Tue Dec 19 2006 09:38:44 EST FRAMES NO FRAMES |
file stats: | LOC: | 41 |  | Methods: | 3
| NCLOC: | 20 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
TargetJDK1_6.java | - | 0% | 0% | 0% |

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.6.
15 |  | *
16 |  | */
17 |  | public class TargetJDK1_6 implements TargetJDKVersion {
18 |  |
19 |  | /**
20 |  | * @see net.sourceforge.pmd.TargetJDKVersion#createParser(InputStream)
21 |  | */
22 | 0 | public JavaParser createParser(InputStream in) {
23 | 0 | JavaParser jp = new JavaParser(new JavaCharStream(in));
24 | 0 | jp.setJDK15();
25 | 0 | return jp;
26 |  | }
27 |  |
28 |  | /**
29 |  | * @see net.sourceforge.pmd.TargetJDKVersion#createParser(Reader)
30 |  | */
31 | 0 | public JavaParser createParser(Reader in) {
32 | 0 | JavaParser jp = new JavaParser(new JavaCharStream(in));
33 | 0 | jp.setJDK15();
34 | 0 | return jp;
35 |  | }
36 |  |
37 | 0 | public String getVersionString() {
38 | 0 | return "1.6";
39 |  | }
40 |  |
41 |  | }