# Ignore Getters/Setters & Default Constructors

### Problem <a href="#problem" id="problem"></a>

SeaLights Java build scan includes default getters/setters and default constructors and I don't want to receive coverage and/or quality risks for them

### Solution <a href="#solution" id="solution"></a>

Although default getters/setters and default constructors are code and should also be tested, we understand certain companies would decide to exclude them from the data scanned and tested.\
Therefore, if you pass the following flags to the build scanner and set them to false they will be excluded automatically from the scan.

{% code overflow="wrap" lineNumbers="true" %}

```
-Dsl.featuresData.reportOnConstructors=false
-Dsl.featuresData.reportOnGettersAndSetters=false
```

{% endcode %}

**Sample of updated 'scan' command**

{% code overflow="wrap" lineNumbers="true" %}

```
java -Dsl.featuresData.reportOnConstructors=false -Dsl.featuresData.reportOnGettersAndSetters=false -jar sl-build-scanner.jar -scan -tokenfile /path/to/sltoken.txt -buildsessionidfile buildSessionId.txt -workspacepath "/path/to/war/files" -fi "*.war"
```

{% endcode %}

### Related articles <a href="#related-articles" id="related-articles"></a>

* [pivotal-cloud-foundry-pcf-support](https://docs.sealights.io/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/java-agent/pivotal-cloud-foundry-pcf-support "mention") (Java)
* [nodejs-javascript-heap-out-of-memory](https://docs.sealights.io/knowledgebase/setup-and-configuration/troubleshooting-faq/node-javascript/nodejs-javascript-heap-out-of-memory "mention") (NodeJS)
* [testing-frameworks-integration](https://docs.sealights.io/knowledgebase/setup-and-configuration/integrations/testing-frameworks-integration "mention")
* [installing-the-coverage-listener-as-a-jvm-java-agent](https://docs.sealights.io/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/java-agent/default-usage-cli/installing-the-coverage-listener-as-a-jvm-java-agent "mention")
* [cd-agent-for-java-application](https://docs.sealights.io/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/cd-agent/cd-agent-for-java-application "mention")
