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
Open sidebar
halo
dalvik
Commits
e2eee30d
Commit
e2eee30d
authored
8 years ago
by
Benoit Lamarche
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Download
Plain Diff
Merge "Revert "Mark empty LocalVariableList as sorted""
parents
90aa7797
3ca3603a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
dx/src/com/android/dx/util/FixedSizeList.java
dx/src/com/android/dx/util/FixedSizeList.java
+4
-7
No files found.
dx/src/com/android/dx/util/FixedSizeList.java
View file @
e2eee30d
...
...
@@ -36,7 +36,6 @@ public class FixedSizeList
*/
public
FixedSizeList
(
int
size
)
{
super
(
size
!=
0
);
sorted
=
size
==
0
;
try
{
arr
=
new
Object
[
size
];
...
...
@@ -279,13 +278,11 @@ public class FixedSizeList
@SuppressWarnings
(
"unchecked"
)
protected
<
T
>
void
sort
(
Comparator
<
T
>
comparator
)
{
if
(!
sorted
)
{
throwIfImmutable
();
throwIfImmutable
();
Arrays
.<
T
>
sort
((
T
[])
arr
,
comparator
);
setImmutable
();
sorted
=
true
;
}
Arrays
.<
T
>
sort
((
T
[])
arr
,
comparator
);
setImmutable
();
sorted
=
true
;
}
public
boolean
isSorted
()
{
...
...
This diff is collapsed.
Click to expand it.
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