| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
33
|
2648
|
1138
-
1176
|
TypeApply
|
scala.Any.asInstanceOf
|
|
ct.runtimeClass.asInstanceOf[Class[T]]
|
|
34
|
2661
|
1191
-
1657
|
Apply
|
scala.Option.getOrElse
|
|
loader.getOrElse[ClassLoader]({
def chain(cl: ClassLoader): Stream[ClassLoader] = if (cl.==(null))
scala.`package`.Stream.empty[Nothing]
else
{
<synthetic> <artifact> val x$1: ClassLoader = cl;
immutable.this.Stream.consWrapper[ClassLoader](chain(cl.getParent())).#::[ClassLoader](x$1)
};
val ccl: ClassLoader = java.lang.Thread.currentThread().getContextClassLoader();
if (ccl.==(null).||(chain(clas.getClassLoader()).contains[ClassLoader](ccl)))
clas.getClassLoader()
else
{
(if (ServiceLoader.this.logger.underlying.isWarnEnabled())
ServiceLoader.this.logger.underlying.warn("Using a context ClassLoader that does not contain the class to load ({}): {}", (scala.Array.apply[AnyRef]((clas.getName(): AnyRef), (ccl: AnyRef))((ClassTag.AnyRef: scala.reflect.ClassTag[AnyRef])): _*))
else
(): Unit);
ccl
}
})
|
|
36
|
2649
|
1278
-
1288
|
Apply
|
java.lang.Object.==
|
|
cl.==(null)
|
|
36
|
2650
|
1292
-
1304
|
TypeApply
|
scala.collection.immutable.Stream.empty
|
|
scala.`package`.Stream.empty[Nothing]
|
|
36
|
2651
|
1292
-
1304
|
Block
|
scala.collection.immutable.Stream.empty
|
|
scala.`package`.Stream.empty[Nothing]
|
|
36
|
2652
|
1314
-
1340
|
Apply
|
scala.collection.immutable.Stream.ConsWrapper.#::
|
|
immutable.this.Stream.consWrapper[ClassLoader](chain(cl.getParent())).#::[ClassLoader](x$1)
|
|
36
|
2653
|
1314
-
1340
|
Block
|
<nosymbol>
|
|
{
<synthetic> <artifact> val x$1: ClassLoader = cl;
immutable.this.Stream.consWrapper[ClassLoader](chain(cl.getParent())).#::[ClassLoader](x$1)
}
|
|
37
|
2654
|
1359
-
1403
|
Apply
|
java.lang.Thread.getContextClassLoader
|
|
java.lang.Thread.currentThread().getContextClassLoader()
|
|
38
|
2655
|
1421
-
1425
|
Literal
|
<nosymbol>
|
|
null
|
|
38
|
2656
|
1429
-
1469
|
Apply
|
scala.collection.LinearSeqOptimized.contains
|
|
chain(clas.getClassLoader()).contains[ClassLoader](ccl)
|
|
38
|
2657
|
1414
-
1469
|
Apply
|
scala.Boolean.||
|
|
ccl.==(null).||(chain(clas.getClassLoader()).contains[ClassLoader](ccl))
|
|
39
|
2658
|
1481
-
1500
|
Apply
|
java.lang.Class.getClassLoader
|
|
clas.getClassLoader()
|
|
39
|
2659
|
1481
-
1500
|
Block
|
java.lang.Class.getClassLoader
|
|
clas.getClassLoader()
|
|
40
|
2660
|
1514
-
1651
|
Block
|
<nosymbol>
|
|
{
(if (ServiceLoader.this.logger.underlying.isWarnEnabled())
ServiceLoader.this.logger.underlying.warn("Using a context ClassLoader that does not contain the class to load ({}): {}", (scala.Array.apply[AnyRef]((clas.getName(): AnyRef), (ccl: AnyRef))((ClassTag.AnyRef: scala.reflect.ClassTag[AnyRef])): _*))
else
(): Unit);
ccl
}
|
|
45
|
2662
|
1662
-
1701
|
Apply
|
java.util.ServiceLoader.load
|
|
java.util.ServiceLoader.load[T](clas, ldr)
|
|
45
|
2663
|
1662
-
1716
|
Select
|
scala.collection.TraversableOnce.toList
|
|
scala.collection.JavaConverters.iterableAsScalaIterableConverter[T](java.util.ServiceLoader.load[T](clas, ldr)).asScala.toList
|
|
58
|
2664
|
2123
-
2138
|
ApplyToImplicitArgs
|
org.locationtech.geomesa.utils.classpath.ServiceLoader.load
|
|
ServiceLoader.this.load[T](loader)(ct)
|
|
59
|
2665
|
2147
-
2172
|
Apply
|
scala.Int.!=
|
|
all.lengthCompare(1).!=(0)
|
|
59
|
2668
|
2143
-
2143
|
Literal
|
<nosymbol>
|
|
()
|
|
59
|
2669
|
2143
-
2143
|
Block
|
<nosymbol>
|
|
()
|
|
60
|
2666
|
2182
-
2291
|
Throw
|
<nosymbol>
|
|
throw new java.lang.IllegalStateException(scala.StringContext.apply("Expected 1 instance of ", " but found ", "").s(ct.runtimeClass.getName(), all.length))
|
|
60
|
2667
|
2182
-
2291
|
Block
|
<nosymbol>
|
|
throw new java.lang.IllegalStateException(scala.StringContext.apply("Expected 1 instance of ", " but found ", "").s(ct.runtimeClass.getName(), all.length))
|
|
62
|
2670
|
2302
-
2310
|
Select
|
scala.collection.IterableLike.head
|
|
all.head
|
|
75
|
2671
|
2745
-
2760
|
ApplyToImplicitArgs
|
org.locationtech.geomesa.utils.classpath.ServiceLoader.load
|
|
ServiceLoader.this.load[T](loader)(ct)
|
|
76
|
2672
|
2769
-
2793
|
Apply
|
scala.Int.>
|
|
all.lengthCompare(1).>(0)
|
|
76
|
2675
|
2765
-
2765
|
Literal
|
<nosymbol>
|
|
()
|
|
76
|
2676
|
2765
-
2765
|
Block
|
<nosymbol>
|
|
()
|
|
77
|
2673
|
2803
-
2918
|
Throw
|
<nosymbol>
|
|
throw new java.lang.IllegalStateException(scala.StringContext.apply("Expected 0 or 1 instances of ", " but found ", "").s(ct.runtimeClass.getName(), all.length))
|
|
77
|
2674
|
2803
-
2918
|
Block
|
<nosymbol>
|
|
throw new java.lang.IllegalStateException(scala.StringContext.apply("Expected 0 or 1 instances of ", " but found ", "").s(ct.runtimeClass.getName(), all.length))
|
|
79
|
2677
|
2929
-
2943
|
Select
|
scala.collection.TraversableLike.headOption
|
|
all.headOption
|