Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2018-11-23 13:08:16 +0000
committerHenrik Rentz-Reichert2018-11-23 16:07:24 +0000
commit5f90e312dbeeffaa057b682e3becb2cee79f6ea0 (patch)
tree714ee95ab99632e9f6a612024ae28458e0c2bce1 /plugins/org.eclipse.etrice.generator.config/src/org/eclipse/etrice
parent4c57977d9e3f098ffae44ee5f3373878b351feca (diff)
downloadorg.eclipse.etrice-5f90e312dbeeffaa057b682e3becb2cee79f6ea0.tar.gz
org.eclipse.etrice-5f90e312dbeeffaa057b682e3becb2cee79f6ea0.tar.xz
org.eclipse.etrice-5f90e312dbeeffaa057b682e3becb2cee79f6ea0.zip
reduced warnings in eTrice Java and Xtend sources
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.config/src/org/eclipse/etrice')
-rw-r--r--plugins/org.eclipse.etrice.generator.config/src/org/eclipse/etrice/generator/config/DataConfiguration.xtend8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.etrice.generator.config/src/org/eclipse/etrice/generator/config/DataConfiguration.xtend b/plugins/org.eclipse.etrice.generator.config/src/org/eclipse/etrice/generator/config/DataConfiguration.xtend
index c9a5cef3d..01a36c9ef 100644
--- a/plugins/org.eclipse.etrice.generator.config/src/org/eclipse/etrice/generator/config/DataConfiguration.xtend
+++ b/plugins/org.eclipse.etrice.generator.config/src/org/eclipse/etrice/generator/config/DataConfiguration.xtend
@@ -100,7 +100,7 @@ class DataConfiguration implements IDataConfiguration {
// dynamic
override getPollingTimerUser(SubSystemInstance subsystem) {
val dynConf = subsystem.config?.dynConfig
- if (dynConf == null)
+ if (dynConf === null)
0
else
dynConf.polling
@@ -108,7 +108,7 @@ class DataConfiguration implements IDataConfiguration {
override getUserCode1(SubSystemInstance subsystem) {
var dynConfig = subsystem.config?.dynConfig
- return if (dynConfig?.filePath != null)
+ return if (dynConfig?.filePath !== null)
"import org.eclipse.etrice.runtime.java.config.ConfigSourceFile;" // TODO JH make lang independent
else
dynConfig?.userCode1
@@ -116,7 +116,7 @@ class DataConfiguration implements IDataConfiguration {
override getUserCode2(SubSystemInstance subsystem) {
var dynConfig = subsystem.config?.dynConfig
- return if (dynConfig?.filePath != null) '''new ConfigSourceFile("«dynConfig.filePath»")''' else
+ return if (dynConfig?.filePath !== null) '''new ConfigSourceFile("«dynConfig.filePath»")''' else
dynConfig?.userCode2
}
@@ -137,7 +137,7 @@ class DataConfiguration implements IDataConfiguration {
}
override hasVariableService(SubSystemInstance subsystem) {
- subsystem.config?.dynConfig != null
+ subsystem.config?.dynConfig !== null
}
def private toStringExpr(ConfigValueArray literal) {

Back to the top