MCPcopy Index your code
hub / github.com/epcdiy/timemachineplus / initCfg

Method initCfg

src/main/java/MySQLHelper.java:29–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 static Logger logger = Logger.getLogger(MySQLHelper.class);
28
29 private void initCfg() throws Exception {
30 ResourceBundle bundle=null;
31 try {
32 bundle = ResourceBundle.getBundle(configFilename);
33 url=bundle.getString("mysqlurl");
34 user=bundle.getString("mysqluser");
35 password=bundle.getString("mysqlpassword");
36 maxpackage=Integer.parseInt(bundle.getString("max_allowed_packet"));
37 } catch (Exception var6) {
38 var6.printStackTrace(System.out);
39 logger.error("Can not Found Config File dbconfig.properties");
40 }
41 }
42
43 public boolean init()
44 {

Callers 1

initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected