@@ -186,20 +186,20 @@ case class AutoComponent[+T](component: Component[T]) extends AnyVal
186186trait Components extends ComponentsLowPrio {
187187 protected def componentNamePrefix : String = " "
188188
189- protected [ this ] def componentInfo (sourceInfo : SourceInfo ): ComponentInfo =
189+ protected def componentInfo (sourceInfo : SourceInfo ): ComponentInfo =
190190 ComponentInfo (componentNamePrefix, sourceInfo)
191191
192192 /**
193193 * Creates a [[Component ]] based on a definition (i.e. a constructor invocation). The definition may refer to
194194 * other components as dependencies using `.ref`. This macro will transform the definition by extracting dependencies
195195 * in a way that allows them to be initialized in parallel, before initializing the current component itself.
196196 */
197- protected [ this ] def component [T ](definition : => T )(implicit sourceInfo : SourceInfo ): Component [T ] = macro ComponentMacros .component[T ]
197+ protected def component [T ](definition : => T )(implicit sourceInfo : SourceInfo ): Component [T ] = macro ComponentMacros .component[T ]
198198
199199 /**
200200 * Asynchronous version of [[component ]] macro.
201201 */
202- protected [ this ] def asyncComponent [T ](definition : ExecutionContext => Future [T ])(implicit sourceInfo : SourceInfo ): Component [T ] = macro ComponentMacros .asyncComponent[T ]
202+ protected def asyncComponent [T ](definition : ExecutionContext => Future [T ])(implicit sourceInfo : SourceInfo ): Component [T ] = macro ComponentMacros .asyncComponent[T ]
203203
204204 /**
205205 * This is the same as [[component ]] except that the created [[Component ]] is cached inside an outer instance that
@@ -208,23 +208,23 @@ trait Components extends ComponentsLowPrio {
208208 * cached [[Component ]] instance. The cache key is based on source position so overriding a method that returns
209209 * `singleton` will create separate [[Component ]] with different cache key.
210210 */
211- protected [ this ] def singleton [T ](definition : => T )(implicit sourceInfo : SourceInfo ): Component [T ] = macro ComponentMacros .singleton[T ]
211+ protected def singleton [T ](definition : => T )(implicit sourceInfo : SourceInfo ): Component [T ] = macro ComponentMacros .singleton[T ]
212212
213213 /**
214214 * Asynchronous version of [[singleton ]] macro.
215215 */
216- protected [ this ] def asyncSingleton [T ](definition : ExecutionContext => Future [T ])(implicit sourceInfo : SourceInfo ): Component [T ] = macro ComponentMacros .asyncSingleton[T ]
216+ protected def asyncSingleton [T ](definition : ExecutionContext => Future [T ])(implicit sourceInfo : SourceInfo ): Component [T ] = macro ComponentMacros .asyncSingleton[T ]
217217
218- private [ this ] lazy val singletonsCache = new ConcurrentHashMap [ComponentInfo , AtomicReference [Future [_]]]
218+ private lazy val singletonsCache = new ConcurrentHashMap [ComponentInfo , AtomicReference [Future [_]]]
219219
220- protected [ this ] def cached [T ](component : Component [T ], freshInfo : ComponentInfo ): Component [T ] = {
220+ protected def cached [T ](component : Component [T ], freshInfo : ComponentInfo ): Component [T ] = {
221221 val cacheStorage = singletonsCache
222222 .computeIfAbsent(freshInfo, _ => new AtomicReference )
223223 .asInstanceOf [AtomicReference [Future [T ]]]
224224 component.cached(cacheStorage, freshInfo)
225225 }
226226
227- protected [ this ] def reifyAllSingletons : List [Component [_]] = macro ComponentMacros .reifyAllSingletons
227+ protected def reifyAllSingletons : List [Component [_]] = macro ComponentMacros .reifyAllSingletons
228228
229229 // avoids divergent implicit expansion involving `inject`
230230 // this is not strictly necessary but makes compiler error messages nicer
0 commit comments