{"action":"created","issue":{"url":"https://api.github.com/repos/yandexmobile/metrica-sdk-android/issues/9","labels_url":"https://api.github.com/repos/yandexmobile/metrica-sdk-android/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/yandexmobile/metrica-sdk-android/issues/9/comments","events_url":"https://api.github.com/repos/yandexmobile/metrica-sdk-android/issues/9/events","html_url":"https://github.com/yandexmobile/metrica-sdk-android/issues/9","id":54674822,"number":9,"title":"Пожелание убрать final из класса com.yandex.metrica.YandexMetrica","user":{"login":"nullproduction","id":4736403,"avatar_url":"https://avatars.githubusercontent.com/u/4736403?v=3","gravatar_id":"","url":"https://api.github.com/users/nullproduction","html_url":"https://github.com/nullproduction","followers_url":"https://api.github.com/users/nullproduction/followers","following_url":"https://api.github.com/users/nullproduction/following{/other_user}","gists_url":"https://api.github.com/users/nullproduction/gists{/gist_id}","starred_url":"https://api.github.com/users/nullproduction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nullproduction/subscriptions","organizations_url":"https://api.github.com/users/nullproduction/orgs","repos_url":"https://api.github.com/users/nullproduction/repos","events_url":"https://api.github.com/users/nullproduction/events{/privacy}","received_events_url":"https://api.github.com/users/nullproduction/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-17T20:53:01Z","updated_at":"2015-01-19T10:39:58Z","closed_at":null,"body":"При отправке событий в метрику я добавляю параметры по умолчанию. В ios sdk я cоздал свой класс расширяющий класс YandexMetrica и переопределяющий метод отправки события.\r\n\r\nВ андройд sdk класс com.yandex.metrica.YandexMetrica с атрибутом final, который не дает наследовать класс. В чем смысл было так делать? Мне кажется это противоречит самому принципу ООП."},"comment":{"url":"https://api.github.com/repos/yandexmobile/metrica-sdk-android/issues/comments/70474177","html_url":"https://github.com/yandexmobile/metrica-sdk-android/issues/9#issuecomment-70474177","issue_url":"https://api.github.com/repos/yandexmobile/metrica-sdk-android/issues/9","id":70474177,"user":{"login":"yvasileuski","id":1748182,"avatar_url":"https://avatars.githubusercontent.com/u/1748182?v=3","gravatar_id":"","url":"https://api.github.com/users/yvasileuski","html_url":"https://github.com/yvasileuski","followers_url":"https://api.github.com/users/yvasileuski/followers","following_url":"https://api.github.com/users/yvasileuski/following{/other_user}","gists_url":"https://api.github.com/users/yvasileuski/gists{/gist_id}","starred_url":"https://api.github.com/users/yvasileuski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yvasileuski/subscriptions","organizations_url":"https://api.github.com/users/yvasileuski/orgs","repos_url":"https://api.github.com/users/yvasileuski/repos","events_url":"https://api.github.com/users/yvasileuski/events{/privacy}","received_events_url":"https://api.github.com/users/yvasileuski/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T10:39:58Z","updated_at":"2015-01-19T10:39:58Z","body":"А зачем вам наследоваться? В описаной вами ситуации более правильно использовать инкапсуляцию"}}