registered static methods as extensions (#1594)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer 2020-08-14 16:54:55 +02:00 committed by GitHub
parent 8c83b60044
commit 545608dab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,14 @@ public class ScriptImplicitlyImportedTypes extends ImplicitlyImportedFeatures {
result.remove(BigInteger.class);
result.remove(BigDecimal.class);
result.remove(double.class);
result.add(NumberExtensions.class);
result.add(BusEvent.class);
result.add(HTTP.class);
result.add(Log.class);
result.add(Ping.class);
result.add(ScriptExecution.class);
result.add(URLEncoder.class);
result.addAll(getActionClasses());
@ -78,12 +85,13 @@ public class ScriptImplicitlyImportedTypes extends ImplicitlyImportedFeatures {
@Override
protected List<Class<?>> getStaticImportClasses() {
List<Class<?>> result = super.getStaticImportClasses();
result.add(ScriptExecution.class);
result.add(BusEvent.class);
result.add(Exec.class);
result.add(HTTP.class);
result.add(Log.class);
result.add(Ping.class);
result.add(ScriptExecution.class);
result.add(URLEncoder.class);
result.add(ImperialUnits.class);
result.add(MetricPrefix.class);