Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs2-20wi
project08
Commits
61c3de6a
Commit
61c3de6a
authored
5 years ago
by
Adam Blank
Browse files
Options
Download
Plain Diff
Merge branch 'fix/add' into 'master'
Fix return value from ISet.add() See merge request
!1
parents
7f14cf1d
87d63321
master
1 merge request
!1
Fix return value from ISet.add()
Pipeline
#46463
canceled with stage
in 0 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/edu/caltech/cs2/interfaces/ISet.java
+1
-12
src/edu/caltech/cs2/interfaces/ISet.java
with
1 addition
and
12 deletions
+1
-12
src/edu/caltech/cs2/interfaces/ISet.java
View file @
61c3de6a
...
...
@@ -79,7 +79,7 @@ public class ISet<E> implements Iterable<E> {
* element
*/
public
boolean
add
(
E
e
)
{
return
this
.
internalDictionary
.
put
(
e
,
new
Object
())
!
=
null
;
return
this
.
internalDictionary
.
put
(
e
,
new
Object
())
=
=
null
;
}
...
...
@@ -100,17 +100,6 @@ public class ISet<E> implements Iterable<E> {
return
this
.
internalDictionary
.
remove
(
e
)
!=
null
;
}
/**
* Removes all of the elements from this set (optional operation).
* The set will be empty after this call returns.
*
* @throws UnsupportedOperationException if the {@code clear} method
* is not supported by this set
*/
public
void
clear
()
{
throw
new
UnsupportedOperationException
();
}
@Override
public
String
toString
()
{
StringBuilder
b
=
new
StringBuilder
();
...
...
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
Menu
Projects
Groups
Snippets
Help