Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Roger Pueyo Centelles
antidote-java-tutorial
Commits
0a4a2ae1
Commit
0a4a2ae1
authored
Jul 11, 2017
by
deepthidevaki
Browse files
fix type
parent
e7698074
Changes
2
Hide whitespace changes
Inline
Side-by-side
bookstore/src/main/java/BookCommands.java
View file @
0a4a2ae1
import
java.util.List
;
public
class
BookCommands
{
public
String
addUser
(
String
username
,
String
userEmail
){
not_implemented
();
return
null
;
}
...
...
@@ -11,7 +13,7 @@ public class BookCommands {
return
null
;
}
public
String
[]
getOwnedBooks
(
String
username
){
public
List
<
String
>
getOwnedBooks
(
String
username
){
not_implemented
();
return
null
;
}
...
...
@@ -27,6 +29,6 @@ public class BookCommands {
}
void
not_implemented
(){
System
.
out
.
printl
n
(
"Not
i
mplemented"
);
throw
new
RuntimeExceptio
n
(
"Not
I
mplemented"
);
}
}
bookstore/src/main/java/BookStore.java
View file @
0a4a2ae1
...
...
@@ -63,7 +63,7 @@ public class BookStore {
}
@Command
public
String
[]
getownedbook
(
String
username
){
public
List
<
String
>
getownedbook
(
String
username
){
return
(
new
BookCommands
().
getOwnedBooks
(
username
));
}
...
...
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