File tree 1 file changed +2
-4
lines changed
oshdb-api/src/main/java/org/heigit/ohsome/oshdb/api/db
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public class OSHDBJdbc extends OSHDBDatabase {
30
30
31
31
protected final DataSource dataSource ;
32
32
protected final DataSource keytablesSource ;
33
- protected JdbcTagTranslator tagTranslator ;
33
+ protected final TagTranslator tagTranslator ;
34
34
private boolean useMultithreading = true ;
35
35
36
36
public OSHDBJdbc (DataSource source ) {
@@ -40,13 +40,11 @@ public OSHDBJdbc(DataSource source) {
40
40
public OSHDBJdbc (DataSource source , DataSource keytables ) {
41
41
this .dataSource = source ;
42
42
this .keytablesSource = keytables ;
43
+ this .tagTranslator = new JdbcTagTranslator (keytablesSource );
43
44
}
44
45
45
46
@ Override
46
47
public TagTranslator getTagTranslator () {
47
- if (tagTranslator == null ) {
48
- tagTranslator = new JdbcTagTranslator (keytablesSource );
49
- }
50
48
return tagTranslator ;
51
49
}
52
50
You can’t perform that action at this time.
0 commit comments