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

  • Home
  • SEARCH
  • 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

I need some help identifying, and eliminating, the cause of an odd child process
After highlighting text, I would like to obtain the paragraph in which the selected
After some experience with functional languages, I'm starting to use recursion more in Java
After I thought that I've understood how they work, I tried this: NSString *str1
After researching a bit how the different way people slugify titles, I've noticed that
So I have a Rails application that upon user submission should generate some kind
after doing some research i'm still not sure if using mysql with .net desktop
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
I have a dictionaries that look like this: s_dates_dict = {17: datetime.date(2009,21,9,0,24), 19: datetime.datetime(2011,12,1,19,39,16),

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.