Prefer @override in the case there is no other annotations

See
https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler#override
This commit is contained in:
Guillaume Beraudo
2017-01-31 09:31:34 +01:00
parent 1c353061fe
commit c16cc286cd
4 changed files with 9 additions and 9 deletions

View File

@@ -480,7 +480,7 @@ ol.source.TileUTFGrid.Tile_.prototype.onXHRError_ = function(event) {
/**
* @inheritDoc
* @override
*/
ol.source.TileUTFGrid.Tile_.prototype.load = function() {
if (this.preemptive_) {

View File

@@ -653,7 +653,7 @@ ol.source.Vector.prototype.getOverlaps = function() {
/**
* @inheritDoc
* @override
*/
ol.source.Vector.prototype.getResolutions = function() {};

View File

@@ -284,7 +284,7 @@ ol.style.Icon.prototype.getImage = function(pixelRatio) {
/**
* @inheritDoc
* @override
*/
ol.style.Icon.prototype.getImageSize = function() {
return this.iconImage_.getSize();
@@ -292,7 +292,7 @@ ol.style.Icon.prototype.getImageSize = function() {
/**
* @inheritDoc
* @override
*/
ol.style.Icon.prototype.getHitDetectionImageSize = function() {
return this.getImageSize();
@@ -300,7 +300,7 @@ ol.style.Icon.prototype.getHitDetectionImageSize = function() {
/**
* @inheritDoc
* @override
*/
ol.style.Icon.prototype.getImageState = function() {
return this.iconImage_.getImageState();
@@ -308,7 +308,7 @@ ol.style.Icon.prototype.getImageState = function() {
/**
* @inheritDoc
* @override
*/
ol.style.Icon.prototype.getHitDetectionImage = function(pixelRatio) {
return this.iconImage_.getHitDetectionImage(pixelRatio);
@@ -366,7 +366,7 @@ ol.style.Icon.prototype.getSize = function() {
/**
* @inheritDoc
* @override
*/
ol.style.Icon.prototype.listenImageChange = function(listener, thisArg) {
return ol.events.listen(this.iconImage_, ol.events.EventType.CHANGE,
@@ -388,7 +388,7 @@ ol.style.Icon.prototype.load = function() {
/**
* @inheritDoc
* @override
*/
ol.style.Icon.prototype.unlistenImageChange = function(listener, thisArg) {
ol.events.unlisten(this.iconImage_, ol.events.EventType.CHANGE,

View File

@@ -88,7 +88,7 @@ ol.VectorTile.prototype.getContext = function() {
/**
* @inheritDoc
* @override
*/
ol.VectorTile.prototype.getImage = function() {
return this.replayState_.renderedTileRevision == -1 ?