Skip to content

Commit

Permalink
Fix constructor parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
FloBoJa committed Jul 7, 2024
1 parent c9bb305 commit bf5bd35
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import org.palladiosimulator.pcm.repository.ParameterModifier;
import org.palladiosimulator.pcm.repository.Repository;
import org.palladiosimulator.pcm.seff.ResourceDemandingSEFF;
import org.palladiosimulator.pcm.seff.ServiceEffectSpecification;
import org.palladiosimulator.retriever.extraction.commonalities.Component;
import org.palladiosimulator.retriever.extraction.commonalities.Composite;
import org.palladiosimulator.retriever.extraction.commonalities.Operation;
Expand Down Expand Up @@ -272,7 +271,9 @@ private void createPCMInterfaces(final Map<OperationInterface, Set<Operation>> i
String[] parameterNames = method.getParameterNames();
for (int i = 0; i < parameterTypes.length; i++) {
final ITypeBinding parameter = parameterTypes[i];
signature = this.handleSignatureDataType(signature, parameterNames[i], parameter,
// If a constructor is detected, its parameter names might not be included.
final String parameterName = i < parameterNames.length ? parameterNames[i] : "parameter" + i;
signature = this.handleSignatureDataType(signature, parameterName, parameter,
parameter.getDimensions(), false);
}

Expand Down

0 comments on commit bf5bd35

Please sign in to comment.