Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
asm
asm
Commits
2530c4b4
Commit
2530c4b4
authored
Jan 07, 2018
by
Remi Forax
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forget again to run google-format, it doesn't seem to run when just
running the test in Gradle
parent
357014aa
Pipeline
#581
passed with stage
in 5 minutes and 47 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
asm/src/main/java/org/objectweb/asm/Type.java
asm/src/main/java/org/objectweb/asm/Type.java
+1
-1
asm/src/test/java/org/objectweb/asm/TypeTest.java
asm/src/test/java/org/objectweb/asm/TypeTest.java
+2
-2
No files found.
asm/src/main/java/org/objectweb/asm/Type.java
View file @
2530c4b4
...
...
@@ -830,7 +830,7 @@ public class Type {
case
OBJECT:
case
INTERNAL:
if
(
opcode
!=
Opcodes
.
ILOAD
&&
opcode
!=
Opcodes
.
ISTORE
&&
opcode
!=
Opcodes
.
IRETURN
)
{
throw
new
UnsupportedOperationException
();
throw
new
UnsupportedOperationException
();
}
return
opcode
+
(
Opcodes
.
ARETURN
-
Opcodes
.
IRETURN
);
case
METHOD:
...
...
asm/src/test/java/org/objectweb/asm/TypeTest.java
View file @
2530c4b4
...
...
@@ -323,7 +323,7 @@ public class TypeTest implements Opcodes {
assertEquals
(
AASTORE
,
Type
.
getType
(
"Ljava/lang/Object;"
).
getOpcode
(
IASTORE
));
assertEquals
(
AASTORE
,
Type
.
getObjectType
(
"java/lang/Object"
).
getOpcode
(
IASTORE
));
assertEquals
(
AASTORE
,
Type
.
getType
(
"[I"
).
getOpcode
(
IASTORE
));
assertEquals
(
RETURN
,
Type
.
VOID_TYPE
.
getOpcode
(
Opcodes
.
IRETURN
));
assertEquals
(
IRETURN
,
Type
.
BOOLEAN_TYPE
.
getOpcode
(
Opcodes
.
IRETURN
));
assertEquals
(
IRETURN
,
Type
.
BYTE_TYPE
.
getOpcode
(
Opcodes
.
IRETURN
));
...
...
@@ -338,7 +338,7 @@ public class TypeTest implements Opcodes {
assertEquals
(
ARETURN
,
Type
.
getType
(
"Ljava/lang/Object;"
).
getOpcode
(
Opcodes
.
IRETURN
));
assertEquals
(
ARETURN
,
Type
.
getObjectType
(
"java/lang/Object"
).
getOpcode
(
Opcodes
.
IRETURN
));
assertEquals
(
ARETURN
,
Type
.
getType
(
"[I"
).
getOpcode
(
Opcodes
.
IRETURN
));
assertEquals
(
IADD
,
Type
.
BOOLEAN_TYPE
.
getOpcode
(
IADD
));
assertEquals
(
IADD
,
Type
.
BYTE_TYPE
.
getOpcode
(
IADD
));
assertEquals
(
IADD
,
Type
.
CHAR_TYPE
.
getOpcode
(
IADD
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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