4
4
* #%L
5
5
* ATB Context Extraction Core Lib
6
6
* %%
7
- * Copyright (C) 2020 ATB – Institut für angewandte Systemtechnik Bremen GmbH
7
+ * Copyright (C) 2021 ATB – Institut für angewandte Systemtechnik Bremen GmbH
8
8
* %%
9
9
* This program and the accompanying materials are made
10
10
* available under the terms of the Eclipse Public License 2.0
@@ -52,7 +52,7 @@ protected Configuration(final AmIMonitoringConfiguration config,
52
52
this .configurationClass = clazz ;
53
53
this .configurationName = configurationName ;
54
54
55
- logger .info ("Loading %s ..." , configurationName );
55
+ logger .info ("Loading {} ..." , configurationName );
56
56
final Serializer serializer = new Persister ();
57
57
try {
58
58
this .configurationBean = serializer .read (this .configurationClass ,
@@ -74,7 +74,7 @@ protected Configuration(final String configFileName,
74
74
this .configurationClass = clazz ;
75
75
this .configurationFileName = configFileName ;
76
76
this .configurationName = configurationName ;
77
- logger .info ("Loading %s ..." , configurationName );
77
+ logger .info ("Loading {} ..." , configurationName );
78
78
readConfigurationFile ();
79
79
80
80
}
@@ -97,9 +97,9 @@ public final void save() { // TODO this should maybe replace by a call to DRM AP
97
97
try {
98
98
if (source .exists () || source .createNewFile ()) {
99
99
serializer .write (getConfig (), source );
100
- logger .info ("%s saved!" , this .configurationName );
100
+ logger .info ("{} saved!" , this .configurationName );
101
101
} else {
102
- logger .warn ("%s could not be saved, because the file %s could not be created!" , this .configurationName , source .getAbsolutePath ());
102
+ logger .warn ("{} could not be saved, because the file {} could not be created!" , this .configurationName , source .getAbsolutePath ());
103
103
}
104
104
} catch (final Exception e ) {
105
105
logger .error ("Could not save the " + this .configurationName
@@ -108,7 +108,7 @@ public final void save() { // TODO this should maybe replace by a call to DRM AP
108
108
}
109
109
110
110
public final void refresh () {
111
- logger .info ("Reloading %s ..." , this .configurationName );
111
+ logger .info ("Reloading {} ..." , this .configurationName );
112
112
readConfigurationFile ();
113
113
}
114
114
0 commit comments