mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 13:21:53 +01:00
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:
parent
3c83e8a8eb
commit
b7193a0acb
@ -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.";
|
||||
|
@ -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);
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user