|
|
@ -381,9 +381,7 @@ public abstract class DesignTableDataManager { |
|
|
|
Env currentEnv = FRContext.getCurrentEnv(); |
|
|
|
Env currentEnv = FRContext.getCurrentEnv(); |
|
|
|
ParameterProvider[] parameters = currentEnv.getTableDataParameters(tabledata); |
|
|
|
ParameterProvider[] parameters = currentEnv.getTableDataParameters(tabledata); |
|
|
|
if (ArrayUtils.isEmpty(parameters)) { |
|
|
|
if (ArrayUtils.isEmpty(parameters)) { |
|
|
|
ParameterProvider[] tableDataParameter = tabledata.getParameters(Calculator.createCalculator()); |
|
|
|
parameters = tabledata.getParameters(Calculator.createCalculator()); |
|
|
|
checkArgument(!ArrayUtils.isEmpty(tableDataParameter), "both parameters and tableDataParameter are empty"); |
|
|
|
|
|
|
|
parameters = tableDataParameter; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
boolean hasValue = true; |
|
|
|
boolean hasValue = true; |
|
|
|
for (ParameterProvider parameter : parameters) { |
|
|
|
for (ParameterProvider parameter : parameters) { |
|
|
@ -493,10 +491,4 @@ public abstract class DesignTableDataManager { |
|
|
|
public static void setThreadLocal(String value) { |
|
|
|
public static void setThreadLocal(String value) { |
|
|
|
threadLocal.set(value); |
|
|
|
threadLocal.set(value); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static void checkArgument(boolean expression, String errorMessage) { |
|
|
|
|
|
|
|
if (!expression) { |
|
|
|
|
|
|
|
throw new IllegalArgumentException(errorMessage); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |