Skip to content

Commit 8c8938d

Browse files
committed
Fix up constructors
1 parent 119ed95 commit 8c8938d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers/JavaCallableWrapperGenerator.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,23 @@ public string GetJavaAccess ()
7070

7171
[Obsolete ("Use the TypeDefinitionCache overload for better performance.")]
7272
public JavaCallableWrapperGenerator (TypeDefinition type, Action<string, object []> log)
73-
: this (type, null, log, resolver: null)
73+
: this (type, log, resolver: null, methodClassifier: null)
7474
{ }
7575

76-
public JavaCallableWrapperGenerator (TypeDefinition type, Action<string, object[]> log, TypeDefinitionCache cache, JavaCallableMethodClassifier methodClassifier = null)
76+
public JavaCallableWrapperGenerator (TypeDefinition type, Action<string, object[]> log, TypeDefinitionCache cache)
77+
: this (type, log, (IMetadataResolver) cache, methodClassifier: null)
78+
{ }
79+
80+
public JavaCallableWrapperGenerator (TypeDefinition type, Action<string, object[]> log, TypeDefinitionCache cache, JavaCallableMethodClassifier methodClassifier)
7781
: this (type, log, (IMetadataResolver) cache, methodClassifier)
7882
{
7983
}
8084

81-
public JavaCallableWrapperGenerator (TypeDefinition type, Action<string, object[]> log, IMetadataResolver resolver, JavaCallableMethodClassifier methodClassifier = null)
85+
public JavaCallableWrapperGenerator (TypeDefinition type, Action<string, object[]> log, IMetadataResolver resolver)
86+
: this (type, log, resolver, methodClassifier: null)
87+
{ }
88+
89+
public JavaCallableWrapperGenerator (TypeDefinition type, Action<string, object[]> log, IMetadataResolver resolver, JavaCallableMethodClassifier methodClassifier)
8290
: this (type, null, log, resolver, methodClassifier)
8391
{
8492
if (type.HasNestedTypes) {

0 commit comments

Comments
 (0)