re-added log action to script scope and cleaned up imported extensions (#1590)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer 2020-08-14 10:06:42 +02:00 committed by GitHub
parent 3c83e8a8eb
commit b7193a0acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

View File

@ -21,7 +21,7 @@ import org.slf4j.LoggerFactory;
*
* @author Thomas Eichstaedt-Engelen - Initial contribution
*/
public class LogAction {
public class Log {
private static final String LOGGER_NAME_PREFIX = "org.openhab.core.model.script.";

View File

@ -28,6 +28,7 @@ import org.openhab.core.library.unit.SmartHomeUnits;
import org.openhab.core.model.script.actions.BusEvent;
import org.openhab.core.model.script.actions.Exec;
import org.openhab.core.model.script.actions.HTTP;
import org.openhab.core.model.script.actions.Log;
import org.openhab.core.model.script.actions.Ping;
import org.openhab.core.model.script.actions.ScriptExecution;
import org.openhab.core.model.script.engine.IActionServiceProvider;
@ -69,11 +70,6 @@ public class ScriptImplicitlyImportedTypes extends ImplicitlyImportedFeatures {
result.remove(double.class);
result.add(NumberExtensions.class);
result.add(URLEncoder.class);
result.add(ScriptExecution.class);
result.add(BusEvent.class);
result.add(Exec.class);
result.add(HTTP.class);
result.add(Ping.class);
result.addAll(getActionClasses());
return result;
@ -86,6 +82,7 @@ public class ScriptImplicitlyImportedTypes extends ImplicitlyImportedFeatures {
result.add(BusEvent.class);
result.add(Exec.class);
result.add(HTTP.class);
result.add(Log.class);
result.add(Ping.class);
result.add(ImperialUnits.class);

View File

@ -26,7 +26,7 @@
</Match>
<!-- The format string is parameter, it can't be constant -->
<Match>
<Class name="org.openhab.core.model.script.actions.LogAction"/>
<Class name="org.openhab.core.model.script.actions.Log"/>
<Bug pattern="SLF4J_FORMAT_SHOULD_BE_CONST"/>
</Match>
<Match>