Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
75723df4
Commit
75723df4
authored
Jul 20, 2000
by
Tom Tromey
Committed by
Tom Tromey
Jul 20, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* java/util/Vector.java (remove(Object)): Implemented.
From-SVN: r35148
parent
983318fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
libjava/ChangeLog
+4
-0
libjava/java/util/Vector.java
+15
-4
No files found.
libjava/ChangeLog
View file @
75723df4
2000-07-20 Tom Tromey <tromey@cygnus.com>
* java/util/Vector.java (remove(Object)): Implemented.
2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
* java/lang/natThrowable.cc (fillInStackTrace): Check for
* java/lang/natThrowable.cc (fillInStackTrace): Check for
...
...
libjava/java/util/Vector.java
View file @
75723df4
...
@@ -413,10 +413,21 @@ public class Vector implements Cloneable, Serializable
...
@@ -413,10 +413,21 @@ public class Vector implements Cloneable, Serializable
// {
// {
// }
// }
// TODO12:
public
synchronized
boolean
remove
(
Object
o
)
// public boolean remove(Object o)
{
// {
for
(
int
i
=
0
;
i
<
elementCount
;
++
i
)
// }
{
if
(
o
==
null
?
elementData
[
i
]
==
null
:
o
.
equals
(
elementData
[
i
]))
{
System
.
arraycopy
(
elementData
,
i
,
elementData
,
i
+
1
,
elementCount
-
i
-
1
);
return
true
;
}
}
return
false
;
}
// TODO12:
// TODO12:
// public Object remove(int index)
// public Object remove(int index)
...
...
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