HtmlMeasurementCategoryFactory.java
biz/hammurapi/metrics/HtmlMeasurementCategoryFactory.java
Violations
Inspector |
Message |
Severity |
Location |
Java Inspector 048 |
Copyrights information should be present in each file. |
1 |
|
Java Inspector 089 |
Type is not documented |
2 |
37:1
|
Java Inspector 089 |
Constructor is not properly documented |
2 |
42:9
|
Java Inspector 089 |
Parameter out is not documented |
2 |
42:9
|
Java Inspector 089 |
Undocumented method |
2 |
46:9
|
Java Inspector 026 |
Avoid hardwired string literals. Allowed literals: [] |
3 |
49:45
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23package biz.hammurapi.metrics;
24
25import java.io.File;
26
27import javax.xml.transform.stream.StreamResult;
28
29import biz.hammurapi.config.ConfigurationException;
30import biz.hammurapi.util.ClassTransformerFactory;
31
32
33
34
35
36
37public class HtmlMeasurementCategoryFactory extends XmlMeasurementCategoryFactory {
38
39
40
41
42 public HtmlMeasurementCategoryFactory(File out) {
43 super(out);
44 }
45
46 public void stop() throws ConfigurationException {
47 try {
48 ClassTransformerFactory ctf=new ClassTransformerFactory(null, true);
49 ctf.transform(this, "metrics", null, null, null, null, new StreamResult(out));
50 } catch (Exception e) {
51 throw new ConfigurationException(e);
52 }
53 }
54}
55