MCPcopy Create free account
hub / github.com/google/guice / getDeclaringSourcePart

Method getDeclaringSourcePart

core/test/com/google/inject/Asserts.java:69–74  ·  view source on GitHub ↗

Returns the source file appears in error messages based on #getIncludeStackTraceOption() value.

(Class<?> clazz)

Source from the content-addressed store, hash-verified

67 * #getIncludeStackTraceOption()} value.
68 */
69 public static String getDeclaringSourcePart(Class<?> clazz) {
70 if (getIncludeStackTraceOption() == IncludeStackTraceOption.OFF) {
71 return ".configure(Unknown Source";
72 }
73 return ".configure(" + clazz.getSimpleName() + ".java:";
74 }
75
76 /**
77 * Returns true if {@link #getIncludeStackTraceOption()} returns {@link

Callers 5

testMissingBindingsMethod · 0.80
testSpiAccessMethod · 0.80
visitMethod · 0.80
checkElementsMethod · 0.80
checkBindingSourceMethod · 0.80

Calls 1

Tested by

no test coverage detected