Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
asm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
asm
asm
Commits
8f941537
Commit
8f941537
authored
Aug 26, 2018
by
Eric Bruneton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix computeMaxs option ignored in readAndWrite().
parent
23ed7e2d
Pipeline
#2654
passed with stage
in 7 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
benchmarks/src/jmh/java/org/objectweb/asm/benchmarks/ASMAdapter.java
...src/jmh/java/org/objectweb/asm/benchmarks/ASMAdapter.java
+1
-1
No files found.
benchmarks/src/jmh/java/org/objectweb/asm/benchmarks/ASMAdapter.java
View file @
8f941537
...
...
@@ -94,7 +94,7 @@ public class ASMAdapter extends Adapter {
@Override
public
byte
[]
readAndWrite
(
final
byte
[]
classFile
,
final
boolean
computeMaxs
)
{
ClassReader
classReader
=
new
ClassReader
(
classFile
);
ClassWriter
classWriter
=
new
ClassWriter
(
0
);
ClassWriter
classWriter
=
new
ClassWriter
(
computeMaxs
?
classWriter
.
COMPUTE_MAXS
:
0
);
classReader
.
accept
(
classWriter
,
0
);
return
classWriter
.
toByteArray
();
}
...
...
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