Edit

GitHub Copilot modernization Java utilities

This article describes several Java-focused tools that are available through GitHub Copilot modernization. These tools provide more flexibility for day-to-day development and code maintenance. You can invoke them directly in Copilot Chat by using the # prefix.

Validation

  • #appmod-validate-cves-for-java

    Scans your project for known Java-related Common Vulnerabilities and Exposures (CVEs) and validates that critical vulnerabilities are addressed.

    Sample prompt:

    Check if there's any CVE issues in this Java project using #appmod-validate-cves-for-java
    

    Screenshot of Visual Studio Code that shows Copilot checking for CVE issues.

Unit testing

  • #appmod-generate-tests-for-java

    Uses AI-based code understanding to automatically create unit tests for your Java code.

    Sample prompt:

    Generate unit tests for this Java project using #appmod-generate-tests-for-java
    

These tools help streamline the Java development lifecycle. They make it easier to adopt best practices for upgrades, testing, and security validation, regardless of whether you're in an upgrade session.

See also

GitHub Copilot modernization