Skip to content

new warnings from the analysis code about final fields #3252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
devoncarew opened this issue May 25, 2012 · 1 comment
Closed

new warnings from the analysis code about final fields #3252

devoncarew opened this issue May 25, 2012 · 1 comment
Assignees
Labels
closed-duplicate Closed in favor of an existing report

Comments

@devoncarew
Copy link
Member

var el = new html.ImageElement();
el.src = "image.jpg";

Results in "Field 'src' is final". I am seeing this behavior with other objects as well.

html.CanvasElement canvas = html.document.query('#canvas');
html.CanvasRenderingContext2D ctx = canvas.getContext('2d');
ctx.fillStyle = game.bgStyle;

fillStyle and others give warnings about fields being final.

void onRequest(HttpRequest req, HttpResponse res){
  res.statusCode = HttpStatus.NOT_FOUND;
  res.contentLength = _notFoundPage.length;

statusCode and contentLength do the same.

@scheglov
Copy link
Contributor

Added Duplicate label.
Marked as being merged into #3248.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

2 participants