{"action":"closed","issue":{"url":"https://api.github.com/repos/google/error-prone/issues/217","labels_url":"https://api.github.com/repos/google/error-prone/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/google/error-prone/issues/217/comments","events_url":"https://api.github.com/repos/google/error-prone/issues/217/events","html_url":"https://github.com/google/error-prone/issues/217","id":47410569,"number":217,"title":"Calling getClass on a variable of type Class","user":{"login":"cushon","id":478458,"avatar_url":"https://avatars.githubusercontent.com/u/478458?v=3","gravatar_id":"","url":"https://api.github.com/users/cushon","html_url":"https://github.com/cushon","followers_url":"https://api.github.com/users/cushon/followers","following_url":"https://api.github.com/users/cushon/following{/other_user}","gists_url":"https://api.github.com/users/cushon/gists{/gist_id}","starred_url":"https://api.github.com/users/cushon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cushon/subscriptions","organizations_url":"https://api.github.com/users/cushon/orgs","repos_url":"https://api.github.com/users/cushon/repos","events_url":"https://api.github.com/users/cushon/events{/privacy}","received_events_url":"https://api.github.com/users/cushon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/error-prone/labels/migrated","name":"migrated","color":"ededed"},{"url":"https://api.github.com/repos/google/error-prone/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/google/error-prone/labels/Type-NewCheck","name":"Type-NewCheck","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-10-31T16:00:26Z","updated_at":"2015-06-28T05:47:22Z","closed_at":"2015-06-28T05:47:22Z","body":"_[Original issue](https://code.google.com/p/error-prone/issues/detail?id=217) created by **fixpoint@google.com** on 2013-11-22 at 02:32 AM_\n\n---\n\nHave just encountered an instance of this (some details changed):\n\n@﻿Provides\nboolean provideEligibility(Class&lt;? extends Action&gt; action) {\n&nbsp;&nbsp;return actionClass.getClass().getAnnotation(IsEligible.class) != null;\n}\n\nCalling getClass() on a Class can be substituted with Class.class for practically all cases with an improvement of readability."}}