Update RedditPost.java
updated newScore type from int to double
This commit is contained in:
parent
4f790f7c61
commit
97624621ae
@ -135,7 +135,7 @@ public abstract class RedditPost {
|
|||||||
* Update post's score.
|
* Update post's score.
|
||||||
* @param newScore the new score.
|
* @param newScore the new score.
|
||||||
*/
|
*/
|
||||||
public void updateScore(int newScore) {
|
public void updateScore(double newScore) {
|
||||||
this.score = newScore;
|
this.score = newScore;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user