We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f52bd5 commit ec4d2d4Copy full SHA for ec4d2d4
src/StructuralPatterns/Proxy/ProxyVideoDownloader.java
@@ -5,12 +5,12 @@
5
6
public class ProxyVideoDownloader implements VideoDownloader{
7
private final Map<String, Video> videoCache = new HashMap<>();
8
- private final VideoDownloader downloader = new RealVideoDownloader();
+ private final VideoDownloader realSubject = new RealVideoDownloader();
9
10
@Override
11
public Video getVideo(String videoName) {
12
if (!videoCache.containsKey(videoName)){
13
- videoCache.put(videoName, downloader.getVideo(videoName));
+ videoCache.put(videoName, realSubject.getVideo(videoName));
14
}
15
return videoCache.get(videoName);
16
0 commit comments