Fix ConfigConstants deprecations (#8525)

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2020-09-21 22:57:04 +02:00
committed by GitHub
parent 7f39d01a0f
commit 0c11a21d90
23 changed files with 49 additions and 51 deletions

View File

@@ -17,7 +17,7 @@ import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import org.openhab.core.config.core.ConfigConstants;
import org.openhab.core.OpenHAB;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -56,7 +56,7 @@ public abstract class AbstractConnection {
public void setProtocolSnifferEnable(boolean enable) {
if (enable) {
File pathWithoutFilename = new File(ConfigConstants.getUserDataFolder());
File pathWithoutFilename = new File(OpenHAB.getUserDataFolder());
pathWithoutFilename.mkdirs();
File file = new File(pathWithoutFilename, "yamaha_trace.log");
if (file.exists()) {