Skip to content

Commit

Permalink
Merge pull request #5467 from Polymer/static-override
Browse files Browse the repository at this point in the history
Remove `@override` from static methods on mixins.
  • Loading branch information
rictic committed Jan 15, 2019
2 parents d619dc1 + bdcd37c commit 038af2a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 3 additions & 1 deletion lib/mixins/dir-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ export const DirMixin = dedupingMixin((base) => {
class Dir extends elementBase {

/**
* @override
* @param {string} cssText .
* @param {string} baseURI .
* @return {string} .
* @suppress {missingProperties} Interfaces in closure do not inherit statics, but classes do
*/
static _processStyleText(cssText, baseURI) {
Expand Down
1 change: 0 additions & 1 deletion lib/mixins/disable-upgrade-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export const DisableUpgradeMixin = dedupingMixin((base) => {
class DisableUpgradeClass extends superClass {

/**
* @override
* @suppress {missingProperties} go/missingfnprops
*/
static get observedAttributes() {
Expand Down
8 changes: 5 additions & 3 deletions lib/mixins/element-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ export const ElementMixin = dedupingMixin(base => {
* find the template.
* @return {void}
* @protected
* @override
* @suppress {missingProperties} Interfaces in closure do not inherit statics, but classes do
*/
static _finalizeClass() {
Expand Down Expand Up @@ -355,9 +354,9 @@ export const ElementMixin = dedupingMixin(base => {
/**
* Override of PropertiesChanged createProperties to create accessors
* and property effects for all of the properties.
* @param {!Object} props .
* @return {void}
* @protected
* @override
*/
static createProperties(props) {
for (let p in props) {
Expand Down Expand Up @@ -724,7 +723,10 @@ export const ElementMixin = dedupingMixin(base => {
* code. This map determines which method templates should have accessors
* created for them.
*
* @override
* @param {!HTMLTemplateElement} template Template
* @param {!TemplateInfo} templateInfo Template metadata for current template
* @param {!NodeInfo} nodeInfo Node metadata for current template.
* @return {boolean} .
* @suppress {missingProperties} Interfaces in closure do not inherit statics, but classes do
*/
static _parseTemplateContent(template, templateInfo, nodeInfo) {
Expand Down
3 changes: 0 additions & 3 deletions lib/mixins/property-effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -2484,7 +2484,6 @@ export const PropertyEffects = dedupingMixin(superClass => {
* with one or more metadata objects capturing the source(s) of the
* binding.
*
* @override
* @param {Node} node Node to parse
* @param {TemplateInfo} templateInfo Template metadata for current template
* @param {NodeInfo} nodeInfo Node metadata for current template node
Expand Down Expand Up @@ -2517,7 +2516,6 @@ export const PropertyEffects = dedupingMixin(superClass => {
* with one or more metadata objects capturing the source(s) of the
* binding.
*
* @override
* @param {Element} node Node to parse
* @param {TemplateInfo} templateInfo Template metadata for current template
* @param {NodeInfo} nodeInfo Node metadata for current template node
Expand Down Expand Up @@ -2581,7 +2579,6 @@ export const PropertyEffects = dedupingMixin(superClass => {
* binding the properties that a nested template depends on to the template
* as `_host_<property>`.
*
* @override
* @param {Node} node Node to parse
* @param {TemplateInfo} templateInfo Template metadata for current template
* @param {NodeInfo} nodeInfo Node metadata for current template node
Expand Down

0 comments on commit 038af2a

Please sign in to comment.