diff --git a/mode/scala.py b/mode/scala.py index 8a30d64..80baab4 100644 --- a/mode/scala.py +++ b/mode/scala.py @@ -220,11 +220,14 @@ class ScalaDecompile(Method): #return "field %s -> %s" % (name, result) return "field %s %s" % (result, name) + elif line.startswith('int'): + return 'int %s' % line[4:] + elif line.startswith('long'): return 'long %s' % line[5:] - elif line.startswith('int'): - return 'int %s' % line[4:] + elif line.startswith('float'): + return 'double %s' % line[6:] elif line.startswith('double'): return 'double %s' % line[7:]