package Ġxxx Ċ Ċ class ĠAccess ing Protected Members Not From Subclass Ġ{ ĊĠ Ġfun Ġfoo () Ġ{ ĊĠĠĠ Ġval Ġa Class : ĠProtected Members Ġ= ĠProtected Members () ĊĠĠĠ Ġa Class .< warning Ġdescr =" Method ĠProtected Members . method () Ġis Ġprotected Ġand Ġused Ġnot Ġthrough Ġa Ġsubclass Ġhere , Ġbut Ġdeclared Ġin Ġa Ġdifferent Ġmodule Ġ' dep '"> method </ warning >() ĊĠĠĠ ĠProtected Members .< warning Ġdescr =" Method ĠProtected Members . static Method () Ġis Ġprotected Ġand Ġused Ġnot Ġthrough Ġa Ġsubclass Ġhere , Ġbut Ġdeclared Ġin Ġa Ġdifferent Ġmodule Ġ' dep '"> static Method </ warning >() ĊĠĠĠ Ġ< warning Ġdescr =" Constructor ĠProtected Construct ors . Protected Construct ors () Ġis Ġprotected Ġand Ġused Ġnot Ġthrough Ġa Ġsubclass Ġhere , Ġbut Ġdeclared Ġin Ġa Ġdifferent Ġmodule Ġ' dep '"> Protected Construct ors </ warning >() ĊĠĠĠ Ġ< warning Ġdescr =" Constructor ĠProtected Construct ors . Protected Construct ors ( int ) Ġis Ġprotected Ġand Ġused Ġnot Ġthrough Ġa Ġsubclass Ġhere , Ġbut Ġdeclared Ġin Ġa Ġdifferent Ġmodule Ġ' dep '"> Protected Construct ors </ warning >( 1 ) ĊĠ Ġ} Ċ } Ċ Ċ @ Suppress (" UNUSED _ VARIABLE ") Ċ class ĠAccess ing Protected Members From Subclass Ġ: ĠProtected Members () Ġ{ ĊĠ Ġfun Ġfoo () Ġ{ ĊĠĠĠ Ġmethod () ĊĠĠĠ Ġstatic Method () ĊĠĠĠ ĠProtected Members . static Method () ĊĊĠĠĠ Ġval Ġa Class Ġ= ĠProtected Members () ĊĠĠĠ Ġa Class .< warning Ġdescr =" Method ĠProtected Members . method () Ġis Ġprotected Ġand Ġused Ġnot Ġthrough Ġa Ġsubclass Ġhere , Ġbut Ġdeclared Ġin Ġa Ġdifferent Ġmodule Ġ' dep '"> method </ warning >() ĊĠĠĠ Ġval Ġmy Instance Ġ= ĠAccess ing Protected Members From Subclass () ĊĠĠĠ Ġmy Instance . method () ĊĊĠĠĠ Ġvar Ġinner 1 : ĠProtected Members . Static Inner ĊĠĠĠ Ġvar Ġinner 2 : ĠStatic Inner ĊĊĠĠĠ Ġval Ġrunnable Ġ= Ġobject Ġ: ĠRunnable Ġ{ ĊĠĠĠĠĠ Ġoverride Ġfun Ġrun () Ġ{ ĊĠĠĠĠĠĠĠ Ġ< warning Ġdescr =" Method ĠProtected Members . method () Ġis Ġprotected Ġand Ġused Ġnot Ġthrough Ġa Ġsubclass Ġhere , Ġbut Ġdeclared Ġin Ġa Ġdifferent Ġmodule Ġ' dep '"> method </ warning >() ĊĠĠĠĠĠĠĠ Ġ< warning Ġdescr =" Method ĠProtected Members . static Method () Ġis Ġprotected Ġand Ġused Ġnot Ġthrough Ġa Ġsubclass Ġhere , Ġbut Ġdeclared Ġin Ġa Ġdifferent Ġmodule Ġ' dep '"> static Method </ warning >() ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġprivate Ġval Ġrunnable Ġ= Ġobject Ġ: ĠRunnable Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġrun () Ġ{ ĊĠĠĠĠĠ Ġ< warning Ġdescr =" Method ĠProtected Members . method () Ġis Ġprotected Ġand Ġused Ġnot Ġthrough Ġa Ġsubclass Ġhere , Ġbut Ġdeclared Ġin Ġa Ġdifferent Ġmodule Ġ' dep '"> method </ warning >() ĊĠĠĠĠĠ Ġ< warning Ġdescr =" Method ĠProtected Members . static Method () Ġis Ġprotected Ġand Ġused Ġnot Ġthrough Ġa Ġsubclass Ġhere , Ġbut Ġdeclared Ġin Ġa Ġdifferent Ġmodule Ġ' dep '"> static Method </ warning >() ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġprivate Ġval Ġobj Ġ= Ġobject Ġ: ĠStatic Inner () Ġ{} ĊĊĠ Ġprivate Ġclass ĠStatic Inner Impl 1 Ġ: ĠProtected Members . Static Inner () ĊĊĠ Ġprivate Ġclass ĠStatic Inner Impl 2 Ġ: ĠStatic Inner () ĊĊĠ Ġprivate Ġinner Ġclass ĠOwn Inner Class Ġ{ ĊĠĠĠ Ġfun Ġbar () Ġ{ ĊĠĠĠĠĠ Ġ< warning Ġdescr =" Method ĠProtected Members . method () Ġis Ġprotected Ġand Ġused Ġnot Ġthrough Ġa Ġsubclass Ġhere , Ġbut Ġdeclared Ġin Ġa Ġdifferent Ġmodule Ġ' dep '"> method </ warning >() ĊĠĠĠĠĠ Ġ< warning Ġdescr =" Method ĠProtected Members . static Method () Ġis Ġprotected Ġand Ġused Ġnot Ġthrough Ġa Ġsubclass Ġhere , Ġbut Ġdeclared Ġin Ġa Ġdifferent Ġmodule Ġ' dep '"> static Method </ warning >() ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ Ċ class ĠAccess ing Default Protected Constructor From Subclass Ġ: ĠProtected Construct ors () Ċ Ċ class ĠAccess ing Protected Constructor From Subclass Ġ: ĠProtected Construct ors ( 1 ) Ċ Ċ val Ġobject Access ing Default Protected Constructor From Subclass Ġ= Ġobject Ġ: ĠProtected Construct ors () Ġ{} Ċ Ċ val Ġobject Access ing Protected Constructor From Subclass Ġ= Ġobject Ġ: ĠProtected Construct ors ( 1 ) Ġ{} Ċ Ċ class ĠAccess ing Protected Members From Object Literal Ġ{ ĊĠ Ġfun Ġbar 1 () Ġ{ ĊĠĠĠ Ġobject Ġ: ĠProtected Members () Ġ{ ĊĠĠĠĠĠ Ġfun Ġbar 2 () Ġ{ ĊĠĠĠĠĠĠĠ Ġmethod () ĊĠĠĠĠĠĠĠ Ġobject Ġ: ĠRunnable Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġoverride Ġfun Ġrun () Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ< warning Ġdescr =" Method ĠProtected Members . method () Ġis Ġprotected Ġand Ġused Ġnot Ġthrough Ġa Ġsubclass Ġhere , Ġbut Ġdeclared Ġin Ġa Ġdifferent Ġmodule Ġ' dep '"> method </ warning >() ĊĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ Ċ // KT - 3 5 2 9 6 : ĠMust Ġnot Ġproduce Ġfalse Ġpositive Ġwarnings Ġfor Ġpackage - private Ġempty Ġconstructor . Ċ class ĠAccess Protected Super Constructor Ġ: ĠPackage Private Empty Constructor Ġ{ ĊĠ Ġconstructor ( i : ĠInt ) Ġ: Ġsuper ( i ) ĊĊĠ Ġconstructor ( i : ĠInt , Ġi 2 : ĠInt ): Ġthis ( i Ġ+ Ġi 2 ) Ċ } Ċ Ċ class ĠAccess Protected Super Constructor With Argument ( i : ĠInt ) Ġ: ĠPackage Private Empty Constructor ( i ) Ġ{ ĊĠ Ġconstructor ( i : ĠInt , Ġi 2 : ĠInt ): Ġthis ( i Ġ+ Ġi 2 ) Ċ }