Skip to content

Commit fccda76

Browse files
committed
try again
1 parent 9f8853d commit fccda76

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

articles/azure-functions/functions-reference-java.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ms.author: routlaw
2121

2222
The concepts of [triggers and bindings](functions-triggers-bindings.md) are fundamental to Azure Functions. Triggers start the execution of your code. Bindings give you a way to pass data to and return data from a function, without having to write custom data access code.
2323

24-
A function should be a stateless method to process input and produce output. Your function cannot depend on any instance fields of the class. All the function methods should be `public` and method with annotation @FunctionName must be unique as method name defines the entry for a function.
24+
A function should be a stateless method to process input and produce output. Your function should not depend on any instance fields of the class. All the function methods should be `public` and method with annotation @FunctionName must be unique as method name defines the entry for a function.
2525

2626
## Folder structure
2727

@@ -57,7 +57,7 @@ You can put more than one function in a project. Avoid putting your functions in
5757

5858
Azure functions are invoked by a trigger, such as an HTTP request, a timer, or an update to data. Your function needs to process that trigger and any other inputs to produce one or more outputs.
5959

60-
Use the Java annotations included in the [com.microsoft.azure.functions.annotation.*](/java/api/com.microsoft.azure.functions.annotation) package to bind input and outputs to your methods. See [Java reference docs](/java/api/com.microsoft.azure.functions.annotation) for more details.
60+
Use the Java annotations included in the [com.microsoft.azure.functions.annotation.*](/java/api/com.microsoft.azure.functions.annotation) package to bind input and outputs to your methods. For more information see [Java reference docs](/java/api/com.microsoft.azure.functions.annotation).
6161

6262
> [!IMPORTANT]
6363
> You must configure an Azure Storage account in your [local.settings.json](/azure/azure-functions/functions-run-local#local-settings-file) to run Azure Storage Blob, Queue, or Table triggers locally.
@@ -114,7 +114,7 @@ You can use Plain old Java objects (POJOs), types defined in `azure-functions-ja
114114

115115
### Plain old Java objects (POJOs)
116116

117-
For converting input data to POJO, [azure-functions-java-worker](https://github.com/Azure/azure-functions-java-worker) uses [gson](https://github.com/google/gson) library. POJO types used as inputs to functions must the same `public` access modifier as the function methods they are being used in.
117+
For converting input data to POJO, [azure-functions-java-worker](https://github.com/Azure/azure-functions-java-worker) uses [gson](https://github.com/google/gson) library. POJO types used as inputs to functions should be `public`.
118118

119119
### Binary data
120120

@@ -174,9 +174,11 @@ public class Function {
174174
}
175175
```
176176

177-
This function is invoked with an HTTP request. HTTP request payload is passed as a `String` for the argument `inputReq`; and one entry is retrieved from the Azure Table Storage and is passed as `TestInputData` to the argument `inputData`.
177+
This function is invoked with an HTTP request.
178+
- HTTP request payload is passed as a `String` for the argument `inputReq`
179+
- One entry is retrieved from the Azure Table Storage and is passed as `TestInputData` to the argument `inputData`.
178180

179-
To receive a batch of inputs bind to `String[]`, `POJO[]`, `List<String>` or `List<POJO>`
181+
To receive a batch of inputs, you can bind to `String[]`, `POJO[]`, `List<String>` or `List<POJO>`.
180182

181183
```java
182184
@FunctionName("ProcessIotMessages")
@@ -329,7 +331,7 @@ public class Function {
329331

330332
## View logs and trace
331333

332-
You can use the Azure CLI to stream Java standard out and error logging as well as other application logging.
334+
You can use the Azure CLI to stream Java stdout and stderr logging as well as other application logging.
333335

334336
Configure your Function application to write application logging using the Azure CLI:
335337

0 commit comments

Comments
 (0)