File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
functions/concepts/scopes/src/main/java/functions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 () {
You can’t perform that action at this time.
0 commit comments