File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/com/google/inject/internal Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public abstract class AbstractBindingBuilder<T> {
41
41
public static final String SCOPE_ALREADY_SET = "Scope is set more than once." ;
42
42
public static final String BINDING_TO_NULL =
43
43
"Binding to null instances is not allowed. "
44
- + "Use toProvider(Providers.of(null) ) if this is your intended behaviour." ;
44
+ + "Use toProvider(() -> null ) if this is your intended behaviour." ;
45
45
public static final String CONSTANT_VALUE_ALREADY_SET = "Constant value is set more than once." ;
46
46
public static final String ANNOTATION_ALREADY_SPECIFIED =
47
47
"More than one annotation is specified for this binding." ;
Original file line number Diff line number Diff line change @@ -223,8 +223,8 @@ public void configure() {
223
223
} catch (CreationException expected ) {
224
224
assertContains (
225
225
expected .getMessage (),
226
- "1) Binding to null instances is not allowed. Use toProvider(Providers.of(null) )" ,
227
- "2) Binding to null instances is not allowed. Use toProvider(Providers.of(null) )" );
226
+ "1) Binding to null instances is not allowed. Use toProvider(() -> null )" ,
227
+ "2) Binding to null instances is not allowed. Use toProvider(() -> null )" );
228
228
}
229
229
}
230
230
You can’t perform that action at this time.
0 commit comments