HsqldbServerDataSource.java
biz/hammurapi/sql/hsqldb/HsqldbServerDataSource.java
Violations
Inspector |
Message |
Severity |
Location |
Java Inspector 048 |
Copyrights information should be present in each file. |
1 |
|
Java Inspector 089 |
Parameter initConnectionTransaction is not documented |
2 |
40:9
|
Java Inspector 089 |
Parameter initConnectionTransaction is not documented |
2 |
50:9
|
Java Inspector 089 |
Parameter password documentation is too short. It is only 1 words. Should be at least 3 words. |
2 |
62:9
|
Java Inspector 089 |
Parameter initConnectionTransaction is not documented |
2 |
62:9
|
Java Inspector 026 |
Avoid hardwired string literals. Allowed literals: [] |
3 |
41:22
|
Java Inspector 026 |
Avoid hardwired string literals. Allowed literals: [] |
3 |
51:28
|
Java Inspector 026 |
Avoid hardwired string literals. Allowed literals: [] |
3 |
51:34
|
Java Inspector 026 |
Avoid hardwired string literals. Allowed literals: [] |
3 |
63:23
|
Java Inspector 051 |
It is good practice to call in any case super() in a constructor. |
3 |
40:9
|
Java Inspector 051 |
It is good practice to call in any case super() in a constructor. |
3 |
50:9
|
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.sql.hsqldb;
24
25import biz.hammurapi.sql.Transaction;
26
27
28
29
30
31
32
33public class HsqldbServerDataSource extends HsqldbDataSource {
34
35
36
37
38
39
40 public HsqldbServerDataSource(Transaction initConnectionTransaction) throws ClassNotFoundException {
41 this("localhost", initConnectionTransaction);
42 }
43
44
45
46
47
48
49
50 public HsqldbServerDataSource(String host, Transaction initConnectionTransaction) throws ClassNotFoundException {
51 this(host, "sa", "", initConnectionTransaction);
52 }
53
54
55
56
57
58
59
60
61
62 public HsqldbServerDataSource(String host, String user, String password, Transaction initConnectionTransaction) throws ClassNotFoundException {
63 super("jdbc:hsqldb:hsql://"+host, user, password, initConnectionTransaction);
64 }
65
66}
67