cleanup warnings
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
package com.minres.coredsl.json
|
||||
|
||||
import com.google.inject.Binder
|
||||
import com.google.inject.Provider
|
||||
import com.minres.coredsl.CoreDslRuntimeModule
|
||||
import org.eclipse.xtext.generator.IFileSystemAccess2
|
||||
import org.eclipse.xtext.generator.IGenerator2
|
||||
|
@ -3,7 +3,6 @@
|
||||
*/
|
||||
package com.minres.coredsl.json
|
||||
|
||||
import com.google.inject.Inject
|
||||
import org.eclipse.emf.ecore.resource.Resource
|
||||
import org.eclipse.xtext.generator.AbstractGenerator
|
||||
import org.eclipse.xtext.generator.IFileSystemAccess2
|
||||
@ -55,7 +54,7 @@ class CoreDslJsonGenerator extends AbstractGenerator {
|
||||
val ret = new JSONObject();
|
||||
ret.put("decoding", inst.encoding.fields.map[it.asString].join(' '))
|
||||
ret.put("name", inst.name);
|
||||
ret.put('disassembly', inst.disass!= null? inst.name.toLowerCase + ' ' + inst.disass.toLowerCase : inst.name)
|
||||
ret.put('disassembly', inst.disass !== null? inst.name.toLowerCase + ' ' + inst.disass.toLowerCase : inst.name)
|
||||
ret.put('execution', inst.behavior.toString)
|
||||
ret.put('restrictions', '')
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ import org.eclipse.xtext.validation.CheckMode
|
||||
import org.eclipse.xtext.parser.ParseException
|
||||
import org.eclipse.xtext.generator.GeneratorContext
|
||||
import org.eclipse.xtext.generator.IFileSystemAccess
|
||||
import picocli.CommandLine.ITypeConverter
|
||||
import java.lang.reflect.MalformedParametersException
|
||||
import org.apache.log4j.Level
|
||||
import org.eclipse.emf.ecore.resource.Resource
|
||||
|
Reference in New Issue
Block a user