projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c9fc04
)
fix: the return value declarations were missing in some method declarations in the...
author
yeom
<yeom>
Wed, 2 May 2012 17:33:38 +0000
(17:33 +0000)
committer
yeom
<yeom>
Wed, 2 May 2012 17:33:38 +0000
(17:33 +0000)
Robust/src/ClassLibrary/LinkedList.java
patch
|
blob
|
history
diff --git
a/Robust/src/ClassLibrary/LinkedList.java
b/Robust/src/ClassLibrary/LinkedList.java
index 2923f400b6d1060949f5d72e3b4638f5dfd304ca..7cd250aca67b9ee70837770846d33cff3976daa5 100644
(file)
--- a/
Robust/src/ClassLibrary/LinkedList.java
+++ b/
Robust/src/ClassLibrary/LinkedList.java
@@
-21,7
+21,7
@@
public class LinkedList {
clear();
}
clear();
}
- public add(Object o) {
+ public
void
add(Object o) {
if( tail == null ) {
head = new LinkedListElement(o, null, null);
tail = head;
if( tail == null ) {
head = new LinkedListElement(o, null, null);
tail = head;
@@
-33,7
+33,7
@@
public class LinkedList {
size++;
}
size++;
}
- public addFirst(Object o) {
+ public
void
addFirst(Object o) {
if( head == null ) {
head = new LinkedListElement(o, null, null);
tail = head;
if( head == null ) {
head = new LinkedListElement(o, null, null);
tail = head;
@@
-45,11
+45,11
@@
public class LinkedList {
size++;
}
size++;
}
- public addLast(Object o) {
+ public
void
addLast(Object o) {
add(o);
}
add(o);
}
- public clear() {
+ public
void
clear() {
head = null;
tail = null;
size = 0;
head = null;
tail = null;
size = 0;