Skip to content

Use the Reporting tool

Table of contents

  1. Introduction
  2. Pre-requisites
  3. Navigate to the Report page
  4. Write a query to search for deprecated classes
  5. Save and/or export results

Introduction

With the Reporting tool, you can query scanned data to find patterns of relationships between nodes. A useful first example might be identifying classes in a Java application that are marked as deprecated.

Pre-requisites

This guide covers a simple example of querying for @Deprecated annotations in a Java project. In order to try it yourself, you will need to scan a Java project.

You will also need to create a Workspace that contains the Java project you scanned.

  1. Click on "Search" in the left hand navigation (you may already be on this page, as it is the default landing page).
  2. Select the workspace with your Java project in the Application header (In this example it is called "salary-app").
  3. At the top of the Search page, click on the "Reporting" tab, next to the "Search" tab.

picture

Write a query to search for deprecated classes

  • Fill in a minimum set of fields to run an initial query picture

  • Narrow your query to a "source" application, by selecting your application from the list under "Within applications" in the "source" column.

  • Under the "source" column, add "ClassEntity" to the "With Types" selector.
  • Under the "relationship" column, add "ANNOTATED_BY" to the "With Types" selector.
  • Under the "target" column, add "InterfaceEntity" to the "With Types" selector.
  • Under both the "source" and "target" columns, select 'identity' and 'name' from the "Select Fields" inputs.

picture

You should see an initial result set. To narrow the Results to Deprecated fields, Type "Deprecated" into the filter "target identity" column.

picture

Save and/or export results

Once the query is tuned to your satisfaction, save it by clicking on the "Save As" button. picture

You can also export and download the full results of the query as a CSV file. picture