[openrtm-commit:02702] r977 - trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 7月 26日 (水) 10:40:02 JST
Author: t-katami
Date: 2017-07-26 10:40:02 +0900 (Wed, 26 Jul 2017)
New Revision: 977
Modified:
trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/Manager.java
Log:
[compat,bugfix,->RELENG_1_2] Fixed the item pointed out by the static code analysis tool.
Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/Manager.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/Manager.java 2017-07-24 04:54:42 UTC (rev 976)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/Manager.java 2017-07-26 01:40:02 UTC (rev 977)
@@ -3684,9 +3684,8 @@
if (!(m_config.getProperty(type_conf) == null
|| m_config.getProperty(type_conf).length() == 0)) {
- BufferedReader conff;
try {
- conff = new BufferedReader(
+ BufferedReader conff = new BufferedReader(
new FileReader(m_config.getProperty(type_conf)));
type_prop.load(conff);
rtcout.println(Logbuf.INFO,
@@ -3697,6 +3696,7 @@
str = type_prop._dump(str,type_prop,0);
rtcout.println(Logbuf.DEBUG,str);
config_fname.add(m_config.getProperty(type_conf));
+ conff.close();
} catch (FileNotFoundException e) {
rtcout.println(Logbuf.DEBUG,
@@ -3711,7 +3711,7 @@
+" in Manager.configureComponent() type_conf.");
rtcout.println(Logbuf.DEBUG, e.getMessage());
e.printStackTrace();
- }
+ }
}
if (m_config.findNode(category + "." + type_name) != null) {
Properties temp = m_config.getNode(category + "." + type_name);
More information about the openrtm-commit
mailing list