private static String calculatePackagePrefix ( ) { String maybeShaded = Library . class . getName ( ) ; // Use ! instead of . to avoid shading utilities from modifying the string String expected = "io!netty!internal!tcnative!Library" . replace ( ' ' , ' ' ) ; if ( ! maybeShaded . endsWith ( expected ) ) { throw new UnsatisfiedLinkError ( String . format ( "Could not find prefix added to %s to get %s. When shading, only adding a " + "package prefix is supported" , expected , maybeShaded ) ) ; } return maybeShaded . substring ( 0 , maybeShaded . length ( ) - expected . length ( ) ) ; }
The shading prefix added to this class s full name .