Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jamie Mansfield
asm
Commits
07d1b647
Commit
07d1b647
authored
Feb 23, 2006
by
ekuleshov
Browse files
issues around null values
[[Split portion of a mixed commit.]]
parent
140bee8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/org/objectweb/asm/util/CheckClassAdapter.java
View file @
07d1b647
...
...
@@ -215,7 +215,7 @@ public class CheckClassAdapter extends ClassAdapter {
+
Opcodes
.
ACC_ANNOTATION
+
Opcodes
.
ACC_ENUM
+
Opcodes
.
ACC_DEPRECATED
);
CheckMethodAdapter
.
checkInternalName
(
name
,
"class name"
);
if
(
name
.
equals
(
"java/lang/Object"
))
{
if
(
"java/lang/Object"
.
equals
(
name
))
{
if
(
superName
!=
null
)
{
throw
new
IllegalArgumentException
(
"The super class name of the Object class must be 'null'"
);
}
...
...
@@ -226,7 +226,7 @@ public class CheckClassAdapter extends ClassAdapter {
// TODO
}
if
((
access
&
Opcodes
.
ACC_INTERFACE
)
!=
0
)
{
if
(!
superName
.
equals
(
"java/lang/Object"
))
{
if
(!
"java/lang/Object"
.
equals
(
superName
))
{
throw
new
IllegalArgumentException
(
"The super class name of interfaces must be 'java/lang/Object'"
);
}
}
...
...
src/org/objectweb/asm/util/TraceMethodVisitor.java
View file @
07d1b647
...
...
@@ -286,11 +286,7 @@ public class TraceMethodVisitor extends TraceAbstractVisitor implements
buf
.
setLength
(
0
);
buf
.
append
(
tab2
).
append
(
"LDC "
);
if
(
cst
instanceof
String
)
{
if
(
cst
==
null
)
{
buf
.
append
(
"null"
);
}
else
if
(
cst
instanceof
String
)
{
AbstractVisitor
.
appendString
(
buf
,
(
String
)
cst
);
}
AbstractVisitor
.
appendString
(
buf
,
(
String
)
cst
);
}
else
if
(
cst
instanceof
Type
)
{
buf
.
append
(((
Type
)
cst
).
getDescriptor
()
+
".class"
);
}
else
{
...
...
@@ -479,7 +475,7 @@ public class TraceMethodVisitor extends TraceAbstractVisitor implements
*
* @param l a label.
*/
p
rotected
void
appendLabel
(
final
Label
l
)
{
p
ublic
void
appendLabel
(
final
Label
l
)
{
String
name
=
(
String
)
labelNames
.
get
(
l
);
if
(
name
==
null
)
{
name
=
"L"
+
labelNames
.
size
();
...
...
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