Our website uses cookies to enhance your browsing experience.
Accept
to the top
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you haven't received our response, please do the following:
check your Spam/Junk folder and click the "Not Spam" button for our message.
This way, you won't miss messages from our team in the future.

>
>
>
Examples of errors detected by the V602…

Examples of errors detected by the V6022 diagnostic

V6022. Parameter is not used inside method's body.


CUBA Platform

V6022 Parameter 'shortcut' is not used inside constructor body. DeclarativeTrackingAction.java(47)


public DeclarativeTrackingAction(String id, String caption, String description,
                                 String icon, String enable, String visible,
                                 String methodName, @Nullable String shortcut,
                                 ActionsHolder holder) {
  super(id);
  this.caption = caption;
  this.description = description;
  this.icon = icon;

  setEnabled(enable == null || Boolean.parseBoolean(enable));
  setVisible(visible == null || Boolean.parseBoolean(visible));

  this.methodName = methodName;
  checkActionsHolder(holder);
}

Similar errors can be found in some other places:

  • V6022 Parameter 'type' is not used inside constructor body. QueryNode.java(36)
  • V6022 Parameter 'text2' is not used inside constructor body. MarkerAddition.java(22)
  • V6022 Parameter 'selection' is not used inside constructor body. AceEditor.java(114)
  • And 1 additional diagnostic messages.

Huawei Cloud

V6022 Parameter 'returnType' is not used inside constructor body. HttpRequest.java(68)


public class HttpReQuest<R>
{
  ....
  Class<R> returnType;
  ....
  public HttpRequest(...., Class<R> returnType) // <=
  {
    this.endpoint = endpoint;
    this.path = path;
    this.method = method;
    this.entity = entity;
  }
  ....
  public Class<R> getReturnType()
  {
    return returnType;
  }
  ....
}

WildFly

V6022 Parameter 'mechanismName' is not used inside constructor body. DigestAuthenticationMechanism.java(144)


public DigestAuthenticationMechanism(final String realmName,
    final String domain,
    final String mechanismName,
    final IdentityManager identityManager,
    boolean validateUri) {
      this(Collections.singletonList(DigestAlgorithm.MD5),
           Collections.singletonList(DigestQop.AUTH),
           realmName, domain, new SimpleNonceManager(),
           DEFAULT_NAME, identityManager, validateUri);
}

ELKI

V6022 Parameter 'updates' is not used inside constructor body. DataStoreEvent.java(60)


public DataStoreEvent(DBIDs inserts, DBIDs removals, DBIDs updates) {
    super();
    this.inserts = inserts;
    this.removals = inserts;
    this.updates = inserts;
}