Skip to content

Commit

Permalink
Code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers committed Sep 17, 2024
1 parent b8ce533 commit cca25e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/net/JNetReflector/InternalMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -847,11 +847,7 @@ static void PrepareSingleClass(this Class jClass, IReadOnlyDictionary<string, st
if (!isInterfaceJavaListener) // it is a class, we have to implement the interfaces
{
fullInterfaces = $"extends {fullInterfaces} ";
}
else
{
fullInterfaces = $", {fullInterfaces}";
foreach(var ctor in jClass.Constructors)
foreach (var ctor in jClass.Constructors)
{
if (ctor.ParameterCount == 0)
{
Expand All @@ -862,6 +858,10 @@ static void PrepareSingleClass(this Class jClass, IReadOnlyDictionary<string, st
}
}
}
else
{
fullInterfaces = $", {fullInterfaces}";
}

var singleJavaListenerStr = singleJavaListenerTemplate.Replace(AllPackageClasses.COPYRIGHT, JNetReflectorCore.CopyrightFileContent)
.Replace(AllPackageClasses.VERSION, SpecialNames.VersionPlaceHolder())
Expand Down

0 comments on commit cca25e8

Please sign in to comment.