Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
languages
EmbeddedMontiArc
Commits
41e72848
Commit
41e72848
authored
Oct 17, 2017
by
Sascha Niklas Schneiders
Browse files
continued refactoring
parent
e559c6a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/embeddedmontiarc/embeddedmontiarc/types/TypesHelper.java
View file @
41e72848
...
...
@@ -191,44 +191,28 @@ public class TypesHelper {
private
static
int
updateVar2
(
int
var2
,
String
typeName
)
{
switch
(
typeName
.
hashCode
())
{
case
-
1325958191
:
if
(
typeName
.
equals
(
"double"
))
{
var2
=
4
;
}
if
(
typeName
.
equals
(
"double"
))
var2
=
4
;
break
;
case
104431
:
if
(
typeName
.
equals
(
"int"
))
{
var2
=
5
;
}
if
(
typeName
.
equals
(
"int"
))
var2
=
5
;
break
;
case
3039496
:
if
(
typeName
.
equals
(
"byte"
))
{
var2
=
2
;
}
if
(
typeName
.
equals
(
"byte"
))
var2
=
2
;
break
;
case
3052374
:
if
(
typeName
.
equals
(
"char"
))
{
var2
=
3
;
}
if
(
typeName
.
equals
(
"char"
))
var2
=
3
;
break
;
case
3327612
:
if
(
typeName
.
equals
(
"long"
))
{
var2
=
7
;
}
if
(
typeName
.
equals
(
"long"
))
var2
=
7
;
break
;
case
64711720
:
if
(
typeName
.
equals
(
"boolean"
))
{
var2
=
0
;
}
if
(
typeName
.
equals
(
"boolean"
))
var2
=
0
;
break
;
case
97526364
:
if
(
typeName
.
equals
(
"float"
))
{
var2
=
1
;
}
if
(
typeName
.
equals
(
"float"
))
var2
=
1
;
break
;
case
109413500
:
if
(
typeName
.
equals
(
"short"
))
{
var2
=
6
;
}
if
(
typeName
.
equals
(
"short"
))
var2
=
6
;
}
return
var2
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment