Skip to content

Commit 97ef26f

Browse files
committed
make profiles final
1 parent 45985d3 commit 97ef26f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/SocketModuleBuiltins.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,9 @@ Object getNameInfo(PTuple sockaddr, int flags) {
455455
@Builtin(name = "getaddrinfo", parameterNames = {"host", "port", "family", "type", "proto", "flags"})
456456
@GenerateNodeFactory
457457
public abstract static class GetAddrInfoNode extends PythonBuiltinNode {
458-
BranchProfile stringPortProfile = BranchProfile.create();
459-
BranchProfile nonePortProfile = BranchProfile.create();
460-
BranchProfile intPortProfile = BranchProfile.create();
458+
private final BranchProfile stringPortProfile = BranchProfile.create();
459+
private final BranchProfile nonePortProfile = BranchProfile.create();
460+
private final BranchProfile intPortProfile = BranchProfile.create();
461461

462462
@Specialization
463463
Object getAddrInfoPString(PString host, Object port, Object family, Object type, Object proto, Object flags,

0 commit comments

Comments
 (0)