Skip to content

Commit aef0190

Browse files
Fix formatting. (GoogleCloudPlatform#129)
* Fix formatting. * Another format fix, due to a change in the formatter.
1 parent 14908ca commit aef0190

File tree

2 files changed

+23
-24
lines changed
  • invoker
    • core/src/main/java/com/google/cloud/functions/invoker/runner
    • testfunction/src/test/java/com/example/functionjar

2 files changed

+23
-24
lines changed

invoker/core/src/main/java/com/google/cloud/functions/invoker/runner/Invoker.java

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ ClassLoader getFunctionClassLoader() {
228228
}
229229

230230
/**
231-
* This will start the server and wait (join) for function calls.
232-
* To start the server inside a unit or integration test, use {@link #startTestServer()} instead.
231+
* This will start the server and wait (join) for function calls. To start the server inside a
232+
* unit or integration test, use {@link #startTestServer()} instead.
233233
*
234234
* @see #stopServer()
235235
* @throws Exception
@@ -238,33 +238,31 @@ public void startServer() throws Exception {
238238
startServer(true);
239239
}
240240

241-
242241
/**
243242
* This will start the server and return.
244243
*
245-
* This method is designed to be used for unit or integration testing only.
246-
* For other use cases use {@link #startServer()}.
244+
* <p>This method is designed to be used for unit or integration testing only. For other use cases
245+
* use {@link #startServer()}.
246+
*
247+
* <p>Inside a test a typical usage will be:
247248
*
248-
* Inside a test a typical usage will be:
249-
* <pre>
250-
* {@code
251-
* // Create an invoker
252-
* Invoker invoker = new Invoker(
253-
* 8081,
254-
* "org.example.MyHttpFunction",
255-
* "http",
256-
* Thread.currentThread().getContextClassLoader()
257-
* );
249+
* <pre>{@code
250+
* // Create an invoker
251+
* Invoker invoker = new Invoker(
252+
* 8081,
253+
* "org.example.MyHttpFunction",
254+
* "http",
255+
* Thread.currentThread().getContextClassLoader()
256+
* );
258257
*
259-
* // Start the test server
260-
* invoker.startTestServer();
258+
* // Start the test server
259+
* invoker.startTestServer();
261260
*
262-
* // Test the function
261+
* // Test the function
263262
*
264-
* // Stop the test server
265-
* invoker.stopServer();
266-
* }
267-
* </pre>
263+
* // Stop the test server
264+
* invoker.stopServer();
265+
* }</pre>
268266
*
269267
* @see #stopServer()
270268
* @throws Exception
@@ -323,7 +321,6 @@ private void startServer(boolean join) throws Exception {
323321
*
324322
* @see #startServer()
325323
* @see #startTestServer()
326-
*
327324
* @throws Exception
328325
*/
329326
public void stopServer() throws Exception {

invoker/testfunction/src/test/java/com/example/functionjar/Background.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
import com.google.gson.JsonObject;
2121
import com.google.gson.JsonPrimitive;
2222

23-
/** @author emcmanus@google.com (Éamonn McManus) */
23+
/**
24+
* @author emcmanus@google.com (Éamonn McManus)
25+
*/
2426
public class Background implements RawBackgroundFunction {
2527
@Override
2628
public void accept(String json, Context context) {

0 commit comments

Comments
 (0)