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 7701023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:53:05+00:00 2026-05-31T22:53:05+00:00

After eliminating some specific nonsense pattern, I need to identify and possibly delete fields

  • 0

After eliminating some specific nonsense pattern, I need to identify and possibly delete fields that are declared in some interface like this:

public interface X
{
    String A = "xxx";
    String B = "zzz";
}

Sure I can use Eclipse’s “find all references” for one identifier after another, but facing thousands of them lets that appear like a very dull fulltime job for days to come.

I tried both Google CodePro and the warnings that the Java compiler can spit out on demand, but found only options for non-public fields in classes, not for public fields in interfaces.

My next try would be: Comment them all out, and go through the errorlist. All fields that are not in the error list can be safely (in my case!) removed. That will be a dull day, too, because instead of a list of all fields that do have active references I am looking for a list of all fields that are not referenced anywhere.

So how can I find all those now-unreferenced fields efficiently?

I mean: I see it is dangerous to look at those references for a given project because another project that my Eclipse workspace does not know about might have references. That might be the rationale behind not offering the warning/analysis option I look for in Eclipse or CodePro.

This is not the case here, though. If it’s not references in my project, I want to eliminate it.

  • 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-31T22:53:06+00:00Added an answer on May 31, 2026 at 10:53 pm

    I think UCDetector is what you want : http://www.ucdetector.org/

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

Sidebar

Related Questions

After writing out some processed content to an output stream, I need to revisit
After some reading and posting, I am fairly sure that I want to use
I need some help identifying, and eliminating, the cause of an odd child process
After being told by at least 10 people on SO that version control was
After hours of debugging, it appears to me that in FireFox, the innerHTML of
So I have a Rails application that upon user submission should generate some kind
After some searching on Google, I ask myself: Is it possible to build a
I have a page where I would like it to remain static after refresh
After debugging a CodeIgniter application that were installed into a new development environment, I
After a small amount of research it seems that TCP MD5 Signatures are enabled

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.