Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 309527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:45:00+00:00 2026-05-12T07:45:00+00:00

As an alternative to littering my code with thousands of final keywords in front

  • 0

As an alternative to littering my code with thousands of final keywords in front of my parameters, I’m trying to enforce it using FindBugs.

It doesn’t seem possible to do this, but there should be a way, shouldn’t there?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:45:00+00:00Added an answer on May 12, 2026 at 7:45 am

    Findbugs has one related bug pattern:

    IP: A parameter is dead upon entry to
    a method but overwritten
    (IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN)

    The initial value of this parameter is
    ignored, and the parameter is
    overwritten here. This often indicates
    a mistaken belief that the write to
    the parameter will be conveyed back to
    the caller.

    However, I don’t think this will catch instances where you overwrite the param after reading the param somewhere.

    On the other hand, it looks like PMD does have a rule that is exactly what you’re looking for:

    AvoidReassigningParameters:
    Reassigning values to parameters is a
    questionable practice. Use a temporary
    local variable instead.

    And if that doesn’t work for you, the PMD people have a list of many more static checkers, both free and commercial that you could look into.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: CURL alternative in Python I'm trying to write a python snippet that
Is there an alternative to using Google C2DM for push notifications with Android? I
I would like an alternative to using callback method inside of jQuery's .val() method
Is there an alternative to using ActiveWorkbook and ActiveSheet in VBA when working with
Is there an alternative of using If to extract a value from a variable
popen() alternative - I am using the accepted answer (pipe/fork/exec method) to solve my
Hi is there alternative to FindSiteMapNode as atm I am trying to get Current
Can anyone please suggest alternative to this line of code so that my code
UPDATE : It doesn't have to be using static files. Is using a global
I am trying to learn node and Express 3 with CoffeeScript. I am using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.