VcsFileRevision changes Follow
Since IDEA 10, the former methode void VcsFileRevision#loadContent has been changed to reurned a byte which i assume is the content of the file.
However there's also a byte getContent method in the same interface and the difference between the two expected behaviours is not clear to me.
I had a look at the svn implementation, but both methods have different behaviour, so I guess there's a difference ?
Any hints are welcome
Please sign in to leave a comment.
nobody knows ?
loadContent() is for load itself, while getContent() assumes that contents might be cached somewhere, and getContent() will try to reuse that cache.
At the moment IntelliJ IDEA have internal content revisions cache, and it is used by getContent() method. If there was no value in the cache, then getContent() method internally calls loadContent().