Skip to content

Commit 8b279fb

Browse files
author
Ace Nassri
authored
[functions/scopes]: use CONSTANT_CASE for variable (#2871)
Fixes #2863
1 parent e87c444 commit 8b279fb

File tree

1 file changed

+2
-2
lines changed
  • functions/concepts/scopes/src/main/java/functions

1 file changed

+2
-2
lines changed

functions/concepts/scopes/src/main/java/functions/Scopes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class Scopes implements HttpFunction {
3030
// Global (instance-wide) scope
3131
// This computation runs at instance cold-start.
3232
// Warning: Class variables used in functions code must be thread-safe.
33-
private static final int InstanceVar = heavyComputation();
33+
private static final int INSTANCE_VAR = heavyComputation();
3434

3535
@Override
3636
public void service(HttpRequest request, HttpResponse response)
@@ -40,7 +40,7 @@ public void service(HttpRequest request, HttpResponse response)
4040
int functionVar = lightComputation();
4141

4242
var writer = new PrintWriter(response.getWriter());
43-
writer.printf("Instance: %s; function: %s", InstanceVar, functionVar);
43+
writer.printf("Instance: %s; function: %s", INSTANCE_VAR, functionVar);
4444
}
4545

4646
private static int lightComputation() {

0 commit comments

Comments
 (0)