Skip to content

Commit

Permalink
fixing Subject reference
Browse files Browse the repository at this point in the history
  • Loading branch information
bethrobson committed Mar 22, 2020
1 parent d6a003d commit 0b59218
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
public class CurrentConditionsDisplay implements Observer, DisplayElement {
private float temperature;
private float humidity;
private Subject weatherData;
private WeatherData weatherData;

public CurrentConditionsDisplay(Subject weatherData) {
public CurrentConditionsDisplay(WeatherData weatherData) {
this.weatherData = weatherData;
weatherData.registerObserver(this);
}
Expand Down

0 comments on commit 0b59218

Please sign in to comment.